aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igbvf/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/igbvf/netdev.c')
-rw-r--r--drivers/net/igbvf/netdev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c
index 44a8eef03a74..22aadb7884fa 100644
--- a/drivers/net/igbvf/netdev.c
+++ b/drivers/net/igbvf/netdev.c
@@ -2119,8 +2119,7 @@ static inline int igbvf_tx_map_adv(struct igbvf_adapter *adapter,
2119 /* set time_stamp *before* dma to help avoid a possible race */ 2119 /* set time_stamp *before* dma to help avoid a possible race */
2120 buffer_info->time_stamp = jiffies; 2120 buffer_info->time_stamp = jiffies;
2121 buffer_info->next_to_watch = i; 2121 buffer_info->next_to_watch = i;
2122 buffer_info->dma = map[count]; 2122 buffer_info->dma = skb_shinfo(skb)->dma_head;
2123 count++;
2124 2123
2125 for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) { 2124 for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) {
2126 struct skb_frag_struct *frag; 2125 struct skb_frag_struct *frag;
@@ -2144,7 +2143,7 @@ static inline int igbvf_tx_map_adv(struct igbvf_adapter *adapter,
2144 tx_ring->buffer_info[i].skb = skb; 2143 tx_ring->buffer_info[i].skb = skb;
2145 tx_ring->buffer_info[first].next_to_watch = i; 2144 tx_ring->buffer_info[first].next_to_watch = i;
2146 2145
2147 return count; 2146 return count + 1;
2148} 2147}
2149 2148
2150static inline void igbvf_tx_queue_adv(struct igbvf_adapter *adapter, 2149static inline void igbvf_tx_queue_adv(struct igbvf_adapter *adapter,
@@ -2270,7 +2269,6 @@ static int igbvf_xmit_frame_ring_adv(struct sk_buff *skb,
2270 if (count) { 2269 if (count) {
2271 igbvf_tx_queue_adv(adapter, tx_ring, tx_flags, count, 2270 igbvf_tx_queue_adv(adapter, tx_ring, tx_flags, count,
2272 skb->len, hdr_len); 2271 skb->len, hdr_len);
2273 netdev->trans_start = jiffies;
2274 /* Make sure there is space in the ring for the next send. */ 2272 /* Make sure there is space in the ring for the next send. */
2275 igbvf_maybe_stop_tx(netdev, MAX_SKB_FRAGS + 4); 2273 igbvf_maybe_stop_tx(netdev, MAX_SKB_FRAGS + 4);
2276 } else { 2274 } else {