net/sched: flower: Add L2TPv3 filter
authorWojciech Drewek <wojciech.drewek@intel.com>
Thu, 8 Sep 2022 17:16:42 +0000 (10:16 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 20 Sep 2022 07:13:38 +0000 (09:13 +0200)
commit8b189ea08c334f25dbb3d076f8adb8b80491d01d
tree1a95d0f8f37c013397cb40b7b429964a4b6a7768
parentdda2fa08a13c688bed320ef2e4ba541abb4d6c17
net/sched: flower: Add L2TPv3 filter

Add support for matching on L2TPv3 session ID.
Session ID can be specified only when ip proto was
set to IPPROTO_L2TP.

Example filter:
  # tc filter add dev $PF1 ingress prio 1 protocol ip \
      flower \
        ip_proto l2tp \
        l2tpv3_sid 1234 \
        skip_sw \
      action mirred egress redirect dev $VF1_PR

Acked-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c