diff options
author | Tom Herbert <therbert@google.com> | 2014-10-03 18:48:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-03 19:53:32 -0400 |
commit | efc98d08e1ec4fd131f794370b274dceaf32c958 (patch) | |
tree | 59358c5df14d19067e5562d0d37c272156b0c221 /include/linux/netdevice.h | |
parent | 7371e0221c7721a1486fef745abaa8ae84571621 (diff) |
fou: eliminate IPv4,v6 specific GRO functions
This patch removes fou[46]_gro_receive and fou[46]_gro_complete
functions. The v4 or v6 variants were chosen for the UDP offloads
based on the address family of the socket this is not necessary
or correct. Alternatively, this patch adds is_ipv6 to napi_gro_skb.
This is set in udp6_gro_receive and unset in udp4_gro_receive. In
fou_gro_receive the value is used to select the correct inet_offloads
for the protocol of the outer IP header.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 910fb17ad148..22d54b9b700d 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1886,6 +1886,9 @@ struct napi_gro_cb { | |||
1886 | /* Number of checksums via CHECKSUM_UNNECESSARY */ | 1886 | /* Number of checksums via CHECKSUM_UNNECESSARY */ |
1887 | u8 csum_cnt:3; | 1887 | u8 csum_cnt:3; |
1888 | 1888 | ||
1889 | /* Used in foo-over-udp, set in udp[46]_gro_receive */ | ||
1890 | u8 is_ipv6:1; | ||
1891 | |||
1889 | /* used to support CHECKSUM_COMPLETE for tunneling protocols */ | 1892 | /* used to support CHECKSUM_COMPLETE for tunneling protocols */ |
1890 | __wsum csum; | 1893 | __wsum csum; |
1891 | 1894 | ||