]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:14 +0000 (17:19 +0200)
commit973041b98d4655428044872aa2c5bbf0953f9bbe
tree7e6df13e66ed9c83e7e735be6aef9b5fd07466f0
parent7c2f5dbfe86609421b6f24ff01e985d978ce71e0
net/sched: act_api: add specific EXT_WARN_MSG for tc action

BugLink: https://bugs.launchpad.net/bugs/2033931
commit 2f59823fe696caa844249a90bb3f9aeda69cfe5c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/uapi/linux/rtnetlink.h
net/sched/act_api.c