aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/tehuti/tehuti.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/tehuti/tehuti.c')
-rw-r--r--drivers/net/ethernet/tehuti/tehuti.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c
index c77e3bf4750a..3a90af6d111c 100644
--- a/drivers/net/ethernet/tehuti/tehuti.c
+++ b/drivers/net/ethernet/tehuti/tehuti.c
@@ -1493,12 +1493,12 @@ bdx_tx_map_skb(struct bdx_priv *priv, struct sk_buff *skb,
1493 bdx_tx_db_inc_wptr(db); 1493 bdx_tx_db_inc_wptr(db);
1494 1494
1495 for (i = 0; i < nr_frags; i++) { 1495 for (i = 0; i < nr_frags; i++) {
1496 struct skb_frag_struct *frag; 1496 const struct skb_frag_struct *frag;
1497 1497
1498 frag = &skb_shinfo(skb)->frags[i]; 1498 frag = &skb_shinfo(skb)->frags[i];
1499 db->wptr->len = frag->size; 1499 db->wptr->len = skb_frag_size(frag);
1500 db->wptr->addr.dma = skb_frag_dma_map(&priv->pdev->dev, frag, 1500 db->wptr->addr.dma = skb_frag_dma_map(&priv->pdev->dev, frag,
1501 0, frag->size, 1501 0, skb_frag_size(frag),
1502 DMA_TO_DEVICE); 1502 DMA_TO_DEVICE);
1503 1503
1504 pbl++; 1504 pbl++;