Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150038
b: refs/heads/master
c: 36e7b1b
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Apr 27, 2009
1 parent 2c41897 commit 8e50d4d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 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: edbd9e30306067c3a45c035eb95a6f49daaa2337
refs/heads/master: 36e7b1b8dac1a785abca3a121b6b0b79f1a8d7df
7 changes: 7 additions & 0 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,13 @@ static inline void *skb_gro_mac_header(struct sk_buff *skb)
skb_shinfo(skb)->frags[0].page_offset;
}

static inline void *skb_gro_network_header(struct sk_buff *skb)
{
return skb_headlen(skb) ? skb_network_header(skb) :
page_address(skb_shinfo(skb)->frags[0].page) +
skb_shinfo(skb)->frags[0].page_offset + skb_network_offset(skb);
}

static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev,
unsigned short type,
const void *daddr, const void *saddr,
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@ void tcp4_proc_exit(void)

struct sk_buff **tcp4_gro_receive(struct sk_buff **head, struct sk_buff *skb)
{
struct iphdr *iph = ip_hdr(skb);
struct iphdr *iph = skb_gro_network_header(skb);

switch (skb->ip_summed) {
case CHECKSUM_COMPLETE:
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ static int tcp_v6_gso_send_check(struct sk_buff *skb)

struct sk_buff **tcp6_gro_receive(struct sk_buff **head, struct sk_buff *skb)
{
struct ipv6hdr *iph = ipv6_hdr(skb);
struct ipv6hdr *iph = skb_gro_network_header(skb);

switch (skb->ip_summed) {
case CHECKSUM_COMPLETE:
Expand Down

0 comments on commit 8e50d4d

Please sign in to comment.