]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb650855c107d5e28eededf5fbf0dfcc6e2dc854f
tree1a95d0f8f37c013397cb40b7b429964a4b6a7768
parente8c8d0996b6b31d7e28e7b37936e1b575422df52
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