Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351415
b: refs/heads/master
c: 8c174e6
h: refs/heads/master
i:
  351413: 3563f64
  351411: 94dc363
  351407: 8b6a0a9
v: v3
  • Loading branch information
David S. Miller committed Jan 16, 2013
1 parent d2582d9 commit b1219e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d60923c465809cec44fb08c53da6cf0c53040dc1
refs/heads/master: 8c174e6f77b37fcbd84d7c3b6d65414fbb444219
6 changes: 5 additions & 1 deletion trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2776,8 +2776,12 @@ static void qdisc_pkt_len_init(struct sk_buff *skb)
* we add to pkt_len the headers size of all segments
*/
if (shinfo->gso_size) {
unsigned int hdr_len = skb_transport_offset(skb);
unsigned int hdr_len;

/* mac layer + network layer */
hdr_len = skb_transport_header(skb) - skb_mac_header(skb);

/* + transport layer */
if (likely(shinfo->gso_type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6)))
hdr_len += tcp_hdrlen(skb);
else
Expand Down

0 comments on commit b1219e7

Please sign in to comment.