diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2019-07-24 14:36:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-24 21:46:03 +0300 |
commit | 92493a2f8a8d5a5bc1188fc71ef02df859ebd932 (patch) | |
tree | fee01d1e0b722ec30a27bd6a45517db11baffd27 /drivers/staging/octeon/ethernet-tx.c | |
parent | 8f75ec1a220e0a4b0f1abbc564987fe754cdc6f0 (diff) | |
download | linux-92493a2f8a8d5a5bc1188fc71ef02df859ebd932.tar.xz |
Build fixes for skb_frag_size conversion
I missed a few places. One is in some ifdeffed code which will probably
never be re-enabled; the others are in drivers which can't currently be
compiled on x86.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/staging/octeon/ethernet-tx.c')
-rw-r--r-- | drivers/staging/octeon/ethernet-tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c index cc12c78f73f1..46a6fcf1414d 100644 --- a/drivers/staging/octeon/ethernet-tx.c +++ b/drivers/staging/octeon/ethernet-tx.c @@ -284,7 +284,7 @@ int cvm_oct_xmit(struct sk_buff *skb, struct net_device *dev) hw_buffer.s.addr = XKPHYS_TO_PHYS((u64)skb_frag_address(fs)); - hw_buffer.s.size = fs->size; + hw_buffer.s.size = skb_drag_size(fs); CVM_OCT_SKB_CB(skb)[i + 1] = hw_buffer.u64; } hw_buffer.s.addr = XKPHYS_TO_PHYS((u64)CVM_OCT_SKB_CB(skb)); |