forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udp:nat:vxlan tx after nat should recsum if vxlan tx offload on
If vxlan-dev enable tx csum offload, there are two case of CHECKSUM_PARTIAL, but udp->check donot have the both meanings. 1. vxlan-dev disable tx csum offload, udp->check is just pseudo hdr. 2. vxlan-dev enable tx csum offload, udp->check is pseudo hdr and csum from outter l4 to innner l4. Unfortunately if there is a nat process after vxlan tx,udp_manip_pkt just use CSUM_PARTIAL to re csum PKT, which is just right on vxlan tx csum disable offload. This patch use skb->csum_local flag to identify two case, which will csum lco_csum if valid. Signed-off-by: chenwei.0515 <chenwei.0515@bytedance.com>
- Loading branch information
1 parent
7b50567
commit 58c404c
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters