projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b170437
)
bnx2x: GSO implies CSUM offload
author
Eilon Greenstein
<eilong@broadcom.com>
Mon, 9 Nov 2009 06:09:22 +0000
(06:09 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 11 Nov 2009 04:54:35 +0000
(20:54 -0800)
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>
drivers/net/bnx2x_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/bnx2x_main.c
b/drivers/net/bnx2x_main.c
index 5b6c68abccd93943315709d20f21ccd4a601a12b..47d67e6aabcf0690d36ed13d4d5001474999c07d 100644
(file)
--- 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)
}
if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4)
- rc |=
XMIT_GSO_V4
;
+ rc |=
(XMIT_GSO_V4 | XMIT_CSUM_V4 | XMIT_CSUM_TCP)
;
else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6)
- rc |=
XMIT_GSO_V6
;
+ rc |=
(XMIT_GSO_V6 | XMIT_CSUM_TCP | XMIT_CSUM_V6)
;
return rc;
}