]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc/tc_monitor: print netlink extack message
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 27 Sep 2022 10:21:07 +0000 (18:21 +0800)
committerDavid Ahern <dsahern@kernel.org>
Wed, 28 Sep 2022 03:18:54 +0000 (21:18 -0600)
commit0cc5533b71dc3d3f07e04e78b36c24e01610837f
tree2fb30f2c6ecaf77d5a26c5e7796192b731579c51
parent80059fa5c5ed5b91e4239163578b37cf829d8772
tc/tc_monitor: print netlink extack message

Upstream commit "sched: add extack for tfilter_notify" will make
tc event contain extack message, which could be used for logging
offloading failures. Let's print the extack message in tc monitor.
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

  Warning: 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/tc_monitor.c