aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-11-25 23:50:17 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2020-11-27 12:10:47 +0100
commita5d45bc0dc50f9dd83703510e9804d813a9cac32 (patch)
tree5649d545ae81423cd33e5e2264e6271972e53fcf /tools/perf/scripts/python/bin
parentnetfilter: nftables_offload: set address type in control dissector (diff)
downloadlinux-a5d45bc0dc50f9dd83703510e9804d813a9cac32.tar.gz
linux-a5d45bc0dc50f9dd83703510e9804d813a9cac32.zip
netfilter: nftables_offload: build mask based from the matching bytes
Userspace might match on prefix bytes of header fields if they are on the byte boundary, this requires that the mask is adjusted accordingly. Use NFT_OFFLOAD_MATCH_EXACT() for meta since prefix byte matching is not allowed for this type of selector. The bitwise expression might be optimized out by userspace, hence the kernel needs to infer the prefix from the number of payload bytes to match on. This patch adds nft_payload_offload_mask() to calculate the bitmask to match on the prefix. Fixes: c9626a2cbdb2 ("netfilter: nf_tables: add hardware offload support") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
tions'>-3/+4 2007-02-11[PATCH] jbd layer function called instead of fs specific oneDmitriy Monakhov2-4/+4 2007-02-11[PATCH] Fix apparent typo CONFIG_LOCKDEP_DEBUGRobert P. J. Day1-1/+1 2007-02-11[PATCH] mxser: remove useless fieldsCedric Le Goater1-6/+1 2007-02-11[PATCH] drivers/block/DAC960: convert 'boolean' to 'bool'Richard Knutsson2-287/+280 2007-02-11[PATCH] some rtc documentation updatesMike Frysinger1-12/+34 2007-02-11[PATCH] order of lockdep off/on in vprintk() should be changedMathieu Desnoyers1-3/+3 2007-02-11[PATCH] Remove unused kernel config option PARIDE_PARPORTRobert P. J. Day1-7/+1 2007-02-11[PATCH] Remove unused kernel config option ZISOFS_FSRobert P. J. Day1-6/+0 2007-02-11[PATCH] Remove references to obsolete kernel config option DEBUG_RWSEMSRobert P. J. Day1-9/+0 2007-02-11[PATCH] Remove dead kernel config option AEDSP16_MPU401.Robert P. J. Day1-12/+0 2007-02-11[PATCH] Replace regular code with appropriate calls to container_of()Robert P. J. Day5-10/+6 2007-02-11[PATCH] cleanup include/linux/reiserfs_xattr.hAdrian Bunk1-5/+19 2007-02-11[PATCH] cleanup include/linux/xattr.hAdrian Bunk2-1/+9 2007-02-11[PATCH] Remove final reference to superfluous smp_commence()Robert P. J. Day1-5/+0 2007-02-11[PATCH] buffer: memorder fixNick Piggin1-0/+1