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>
This commit is contained in:
committed by
David S. Miller
parent
6a674e9c75
commit
fc70fb640b
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user