aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index eb0c4f1d4483..73512fb16452 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -4521,13 +4521,12 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev)
4521 return NETDEV_TX_OK; 4521 return NETDEV_TX_OK;
4522 } 4522 }
4523 4523
4524 tcp_opt_len = ((skb->h.th->doff - 5) * 4);
4525 vlan_tag_flags |= TX_BD_FLAGS_SW_LSO; 4524 vlan_tag_flags |= TX_BD_FLAGS_SW_LSO;
4526 4525
4527 tcp_opt_len = 0; 4526 tcp_opt_len = 0;
4528 if (skb->h.th->doff > 5) { 4527 if (skb->h.th->doff > 5)
4529 tcp_opt_len = (skb->h.th->doff - 5) << 2; 4528 tcp_opt_len = tcp_optlen(skb);
4530 } 4529
4531 ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr); 4530 ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr);
4532 4531
4533 iph = ip_hdr(skb); 4532 iph = ip_hdr(skb);