Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: do not reset csum on adjust room for newer kernels
See also [0]. Fall back to passing in 0 flags for older kernels. We do not push/pop protocol headers but rather keep the same layers instead, therefore there is also no point in changing to csum_none. We can probe on csum_level() helper for this since both are needed if this gets ever backported somewhere. [0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=836e66c218f355ec01ba57671c85abf32961dcea [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7cdec54f9713256bb170873a1fc5c75c9127c9d2 Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
- Loading branch information
Showing
3 changed files
with
18 additions
and
4 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