aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-11-09 01:09:22 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-10 23:54:35 -0500
commitd6a2f98b0128ad1225f959610ba21b6679b7cd96 (patch)
treebf8f79467c34c67d553f63489cefe6955654be14 /drivers
parentb1704374fd525e50c44e1a03098728f64231a6f5 (diff)
bnx2x: GSO implies CSUM offload
Making sure that whenever the FW/HW is configured for GSO, it is also configured to CSUM offload Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bnx2x_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 5b6c68abccd9..47d67e6aabcf 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -11129,10 +11129,10 @@ static inline u32 bnx2x_xmit_type(struct bnx2x *bp, struct sk_buff *skb)
11129 } 11129 }
11130 11130
11131 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) 11131 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4)
11132 rc |= XMIT_GSO_V4; 11132 rc |= (XMIT_GSO_V4 | XMIT_CSUM_V4 | XMIT_CSUM_TCP);
11133 11133
11134 else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) 11134 else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6)
11135 rc |= XMIT_GSO_V6; 11135 rc |= (XMIT_GSO_V6 | XMIT_CSUM_TCP | XMIT_CSUM_V6);
11136 11136
11137 return rc; 11137 return rc;
11138} 11138}