Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351399
b: refs/heads/master
c: 757b8b1
h: refs/heads/master
i:
  351397: 5c92b3e
  351395: 58aac2a
  351391: cdc021a
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 16, 2013
1 parent 15f01be commit 481277b
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: 247fa82be1301e4f89eaa5dc10be62a9cc84e8c5
refs/heads/master: 757b8b1d2bfa1210592bfd2984852b155eb58746
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 481277b

Please sign in to comment.