net/sched: act_api: add specific EXT_WARN_MSG for tc action
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 16 Mar 2023 03:37:53 +0000 (11:37 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Mar 2023 04:25:45 +0000 (21:25 -0700)
commit2f59823fe696caa844249a90bb3f9aeda69cfe5c
tree960f9a19734b7b13b7b76c75f972d5b754e3129e
parent8de2bd02439eb839a452a853c1004c2c45ff6fef
net/sched: act_api: add specific EXT_WARN_MSG for tc action

In my previous commit 0349b8779cc9 ("sched: add new attr TCA_EXT_WARN_MSG
to report tc extact message") I didn't notice the tc action use different
enum with filter. So we can't use TCA_EXT_WARN_MSG directly for tc action.
Let's add a TCA_ROOT_EXT_WARN_MSG for tc action specifically and put this
param before going to the TCA_ACT_TAB nest.

Fixes: 0349b8779cc9 ("sched: add new attr TCA_EXT_WARN_MSG to report tc extact message")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/rtnetlink.h
net/sched/act_api.c