projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5e5fa5
)
[TG3]: fixup tot_len calculation
author
Alexey Dobriyan
<adobriyan@gmail.com>
Tue, 3 Jan 2006 22:19:25 +0000
(14:19 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 Jan 2006 22:19:25 +0000
(14:19 -0800)
Turning struct iphdr::tot_len into __be16 added sparse warning.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tg3.c
b/drivers/net/tg3.c
index 59d916ccc810570796fa3ab95a3fc143e069e080..eb86b059809b6ac4242bbf91d16d258e7e9a7ab5 100644
(file)
--- a/
drivers/net/tg3.c
+++ b/
drivers/net/tg3.c
@@
-3651,7
+3651,7
@@
static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
TXD_FLAG_CPU_POST_DMA);
skb->nh.iph->check = 0;
- skb->nh.iph->tot_len =
ntoh
s(mss + ip_tcp_len + tcp_opt_len);
+ skb->nh.iph->tot_len =
hton
s(mss + ip_tcp_len + tcp_opt_len);
if (tp->tg3_flags2 & TG3_FLG2_HW_TSO) {
skb->h.th->check = 0;
base_flags &= ~TXD_FLAG_TCPUDP_CSUM;