mbox series

[RFC,net-next,0/3] net: sched: Make tc-related drop reason more flexible for remaining qdiscs

Message ID 20231118203754.2270159-1-victor@mojatatu.com (mailing list archive)
Headers show
Series net: sched: Make tc-related drop reason more flexible for remaining qdiscs | expand

Message

Victor Nogueira Nov. 18, 2023, 8:37 p.m. UTC
This patch builds on Daniel's patch[1] to add initial support of tc drop
reason. The main goal is to distinguish between policy and error drops for
the remainder of the egress qdiscs (other than clsact).
The drop reason is set by cls_api and act_api in the tc skb cb in case
any error occurred in the data path.

Also add new skb drop reasons that are idiosyncratic to TC.

[1] https://lore.kernel.org/all/20231009092655.22025-1-daniel@iogearbox.net

Victor Nogueira (3):
  net: sched: Move drop_reason to struct tc_skb_cb
  net: sched: Make tc-related drop reason more flexible for remaining
    qdiscs
  net: sched: Add initial TC error skb drop reasons

 include/net/dropreason-core.h | 30 ++++++++++++++++++++---
 include/net/pkt_cls.h         |  6 -----
 include/net/pkt_sched.h       | 18 --------------
 include/net/sch_generic.h     | 46 ++++++++++++++++++++++++++++++++++-
 net/core/dev.c                | 11 ++++++---
 net/sched/act_api.c           |  3 ++-
 net/sched/cls_api.c           | 28 ++++++++++++---------
 7 files changed, 98 insertions(+), 44 deletions(-)