aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atl1/atl1_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/atl1/atl1_main.c')
-rw-r--r--drivers/net/atl1/atl1_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/atl1/atl1_main.c b/drivers/net/atl1/atl1_main.c
index 8d5994751e2e..d60c2217332c 100644
--- a/drivers/net/atl1/atl1_main.c
+++ b/drivers/net/atl1/atl1_main.c
@@ -1298,9 +1298,10 @@ static int atl1_tso(struct atl1_adapter *adapter, struct sk_buff *skb,
1298 1298
1299 iph->tot_len = 0; 1299 iph->tot_len = 0;
1300 iph->check = 0; 1300 iph->check = 0;
1301 skb->h.th->check = ~csum_tcpudp_magic(iph->saddr, 1301 tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr,
1302 iph->daddr, 0, 1302 iph->daddr, 0,
1303 IPPROTO_TCP, 0); 1303 IPPROTO_TCP,
1304 0);
1304 ipofst = skb_network_offset(skb); 1305 ipofst = skb_network_offset(skb);
1305 if (ipofst != ENET_HEADER_SIZE) /* 802.3 frame */ 1306 if (ipofst != ENET_HEADER_SIZE) /* 802.3 frame */
1306 tso->tsopl |= 1 << TSO_PARAM_ETHTYPE_SHIFT; 1307 tso->tsopl |= 1 << TSO_PARAM_ETHTYPE_SHIFT;