Introduce tc block ports tracking and use
From: | Jamal Hadi Salim <jhs-AT-mojatatu.com> | |
To: | jiri-AT-resnulli.us | |
Subject: | [PATCH RFC net-next 0/3] Introduce tc block ports tracking and use | |
Date: | Tue, 15 Aug 2023 12:25:27 -0400 | |
Message-ID: | <20230815162530.150994-1-jhs@mojatatu.com> | |
Cc: | xiyou.wangcong-AT-gmail.com, netdev-AT-vger.kernel.org, vladbu-AT-nvidia.com, mleitner-AT-redhat.com, Jamal Hadi Salim <jhs-AT-mojatatu.com> | |
Archive-link: | Article |
In this patchset we introduce tc block netdev tracking infra. Patch 1 introduces the infra. Patch 2 exposes it to the datapath and patch 3 shows its usage via a new tc action "blockcast". Jamal Hadi Salim (3): Introduce tc block netdev tracking infra Expose tc block ports to the datapath Introduce blockcast tc action include/net/sch_generic.h | 8 + include/net/tc_wrapper.h | 5 + net/sched/Kconfig | 13 ++ net/sched/Makefile | 1 + net/sched/act_blockcast.c | 315 ++++++++++++++++++++++++++++++++++++++ net/sched/cls_api.c | 7 +- net/sched/sch_api.c | 83 +++++++++- net/sched/sch_generic.c | 37 ++++- 8 files changed, 463 insertions(+), 6 deletions(-) create mode 100644 net/sched/act_blockcast.c -- 2.34.1