[PATCH iproute2-next 0/2] flower: support a mask on enc_key_id

From
Alexandre Cassen <hidden>
Date
2026-11-09 13:11:58
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
Thread (3 messages) 3 messages, 1 author, last reply 6d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help