]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: add new attr TCA_EXT_WARN_MSG
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 17 Jan 2023 07:19:25 +0000 (15:19 +0800)
committerDavid Ahern <dsahern@kernel.org>
Sun, 22 Jan 2023 18:01:11 +0000 (11:01 -0700)
commit6035995665b7845c8ddf2c3a44f46c283f26f449
tree60eecff2e4965d21e3291ac87a92f1d4f9a903d6
parent77d4425560ce6f18f37dbaa6c5657c84e49ae468
tc: add new attr TCA_EXT_WARN_MSG

Currently, when the rule is not to be exclusively executed by the
hardware, extack is not passed along and offloading failures don't
get logged. Add a new attr TCA_EXT_WARN_MSG to log the extack message
so we can monitor the HW failures. e.g.

  # tc monitor
  added chain dev enp3s0f1np1 parent ffff: chain 0
  added filter dev enp3s0f1np1 ingress protocol all pref 49152 flower chain 0 handle 0x1
    ct_state +trk+new
    not_in_hw
          action order 1: gact action drop
           random type none pass val 0
           index 1 ref 1 bind 1

  mlx5_core: matching on ct_state +new isn't supported.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
tc/m_action.c
tc/tc_filter.c
tc/tc_qdisc.c
tc/tc_util.c
tc/tc_util.h