net: flower: add support for matching cfm fields
authorZahari Doychev <zdoychev@maxlinear.com>
Thu, 8 Jun 2023 10:56:47 +0000 (12:56 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Jun 2023 00:01:45 +0000 (17:01 -0700)
commit7cfffd5fed3e385010583840402f0bf66c4ed147
tree0ead1cf8822109f73609e1cd799b079f52afbdc2
parentd7ad70b5ef5ab8dedaa403e0e5c711ca1aa8cb14
net: flower: add support for matching cfm fields

Add support to the tc flower classifier to match based on fields in CFM
information elements like level and opcode.

tc filter add dev ens6 ingress protocol 802.1q \
flower vlan_id 698 vlan_ethtype 0x8902 cfm mdl 5 op 46 \
action drop

Signed-off-by: Zahari Doychev <zdoychev@maxlinear.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c