diff options
author | 2024-11-04 21:13:20 -0700 | |
---|---|---|
committer | 2024-11-06 17:39:59 -0800 | |
commit | 5f143efd3804a85d6a17cabc225effd89d017076 (patch) | |
tree | 19827229350afbdb93390ffb6bf45ffa82cb7a5f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bnxt_en: ethtool: Remove ip4/ip6 ntuple support for IPPROTO_RAW (diff) | |
download | wireguard-linux-5f143efd3804a85d6a17cabc225effd89d017076.tar.xz wireguard-linux-5f143efd3804a85d6a17cabc225effd89d017076.zip |
bnxt_en: ethtool: Support unset l4proto on ip4/ip6 ntuple rules
Previously, trying to insert an ip4/ip6 ntuple rule with an unset
l4proto would get rejected with -EOPNOTSUPP. For example, the following
would fail:
ethtool -N eth0 flow-type ip6 dst-ip $IP6 context 1
The reason was that all the l4proto validation was being run despite the
l4proto mask being set to 0x0. Fix by respecting the mask on l4proto and
treating a mask of 0x0 as wildcard l4proto.
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/1ac93a2836b25f79e7045f8874d9a17875229ffc.1730778566.git.dxu@dxuuu.xyz
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions