diff options
Diffstat (limited to 'drivers/net/atlx/atl1.c')
-rw-r--r-- | drivers/net/atlx/atl1.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index 4e817126e280..94d7325caf4f 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c | |||
@@ -2213,8 +2213,7 @@ static void atl1_tx_map(struct atl1_adapter *adapter, struct sk_buff *skb, | |||
2213 | nr_frags = skb_shinfo(skb)->nr_frags; | 2213 | nr_frags = skb_shinfo(skb)->nr_frags; |
2214 | next_to_use = atomic_read(&tpd_ring->next_to_use); | 2214 | next_to_use = atomic_read(&tpd_ring->next_to_use); |
2215 | buffer_info = &tpd_ring->buffer_info[next_to_use]; | 2215 | buffer_info = &tpd_ring->buffer_info[next_to_use]; |
2216 | if (unlikely(buffer_info->skb)) | 2216 | BUG_ON(buffer_info->skb); |
2217 | BUG(); | ||
2218 | /* put skb in last TPD */ | 2217 | /* put skb in last TPD */ |
2219 | buffer_info->skb = NULL; | 2218 | buffer_info->skb = NULL; |
2220 | 2219 | ||
@@ -2280,8 +2279,8 @@ static void atl1_tx_map(struct atl1_adapter *adapter, struct sk_buff *skb, | |||
2280 | ATL1_MAX_TX_BUF_LEN; | 2279 | ATL1_MAX_TX_BUF_LEN; |
2281 | for (i = 0; i < nseg; i++) { | 2280 | for (i = 0; i < nseg; i++) { |
2282 | buffer_info = &tpd_ring->buffer_info[next_to_use]; | 2281 | buffer_info = &tpd_ring->buffer_info[next_to_use]; |
2283 | if (unlikely(buffer_info->skb)) | 2282 | BUG_ON(buffer_info->skb); |
2284 | BUG(); | 2283 | |
2285 | buffer_info->skb = NULL; | 2284 | buffer_info->skb = NULL; |
2286 | buffer_info->length = (buf_len > ATL1_MAX_TX_BUF_LEN) ? | 2285 | buffer_info->length = (buf_len > ATL1_MAX_TX_BUF_LEN) ? |
2287 | ATL1_MAX_TX_BUF_LEN : buf_len; | 2286 | ATL1_MAX_TX_BUF_LEN : buf_len; |
@@ -2383,7 +2382,7 @@ static int atl1_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | |||
2383 | 2382 | ||
2384 | mss = skb_shinfo(skb)->gso_size; | 2383 | mss = skb_shinfo(skb)->gso_size; |
2385 | if (mss) { | 2384 | if (mss) { |
2386 | if (skb->protocol == ntohs(ETH_P_IP)) { | 2385 | if (skb->protocol == htons(ETH_P_IP)) { |
2387 | proto_hdr_len = (skb_transport_offset(skb) + | 2386 | proto_hdr_len = (skb_transport_offset(skb) + |
2388 | tcp_hdrlen(skb)); | 2387 | tcp_hdrlen(skb)); |
2389 | if (unlikely(proto_hdr_len > len)) { | 2388 | if (unlikely(proto_hdr_len > len)) { |
@@ -2438,7 +2437,6 @@ static int atl1_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | |||
2438 | atl1_tx_queue(adapter, count, ptpd); | 2437 | atl1_tx_queue(adapter, count, ptpd); |
2439 | atl1_update_mailbox(adapter); | 2438 | atl1_update_mailbox(adapter); |
2440 | mmiowb(); | 2439 | mmiowb(); |
2441 | netdev->trans_start = jiffies; | ||
2442 | return NETDEV_TX_OK; | 2440 | return NETDEV_TX_OK; |
2443 | } | 2441 | } |
2444 | 2442 | ||