diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2012-12-07 14:14:15 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-09 00:20:28 -0500 |
commit | fc70fb640b159f1d6bf5ad2321cd55e874c8d1b8 (patch) | |
tree | 5c3b02210c6fe0a6c290869ce35c73bc010d8cd7 /net/ipv4 | |
parent | 6a674e9c75b17e7a88ff15b3c2e269eed54f7cfb (diff) | |
download | linux-stable-fc70fb640b159f1d6bf5ad2321cd55e874c8d1b8.tar.gz linux-stable-fc70fb640b159f1d6bf5ad2321cd55e874c8d1b8.tar.bz2 linux-stable-fc70fb640b159f1d6bf5ad2321cd55e874c8d1b8.zip |
net: Handle encapsulated offloads before fragmentation or handing to lower dev
This change allows the VXLAN to enable Tx checksum offloading even on
devices that do not support encapsulated checksum offloads. The
advantage to this is that it allows for the lower device to change due
to routing table changes without impacting features on the VXLAN itself.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 6537a408a4fb..3e98ed2bff55 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -595,6 +595,10 @@ slow_path_clean: } slow_path: + /* for offloaded checksums cleanup checksum before fragmentation */ + if ((skb->ip_summed == CHECKSUM_PARTIAL) && skb_checksum_help(skb)) + goto fail; + left = skb->len - hlen; /* Space per frame */ ptr = hlen; /* Where to start from */ |