tc support for the flower mask of the kernel series "tc flower: tunnel key
partitioning for RX queue steering". One rule handles a block of tunnel
keys:
tc filter add dev eth0 ingress protocol ip flower skip_sw \
ip_proto udp dst_port 2152 enc_key_id 0x40000000/0xc0000000 \
action skbedit queue_mapping 1 skip_sw
Patch 1 follows the kernel header and can be dropped once the headers are
synced. Patch 2 adds the mask to parsing, printing and the man page.
Exact rules dump as before. An older kernel ignores the attribute. Exact
rules keep working there. A masked rule matches as if it had a full mask.
Tested under User-Mode Linux and on ConnectX-7 against the kernel series
and a kernel without it.
Alexandre Cassen (2):
uapi: pkt_cls: add flower mask for enc_key_id
flower: support a mask on enc_key_id
include/uapi/linux/pkt_cls.h | 2 ++
man/man8/tc-flower.8 | 15 +++++++++----
tc/f_flower.c | 41 +++++++++++++++++++-----------------
tc/tc_util.c | 12 +++++++++++
tc/tc_util.h | 2 ++
5 files changed, 49 insertions(+), 23 deletions(-)
--
2.47.3