]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: fix tcf_block_get_ext() in case CONFIG_NET_CLS is not set
authorQuentin Monnet <quentin.monnet@netronome.com>
Thu, 4 Jan 2018 01:30:45 +0000 (17:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jan 2018 16:18:27 +0000 (11:18 -0500)
commit8b0c052c2e54239def8d7e22b628215ec50f1a3f
tree14ac08b6a9df46d5a31dcaa7fb56632d8bdc03fb
parentda99685346d3ee1745415265fc53746099f8144c
net: sched: fix tcf_block_get_ext() in case CONFIG_NET_CLS is not set

The definition of functions tcf_block_get() and tcf_block_get_ext()
depends of CONFIG_NET_CLS being set. When those functions gained extack
support, only one version of the declaration of those functions was
updated. Function tcf_block_get() was later fixed with commit
758d20c5cc7a ("net: sch: api: fix tcf_block_get").

Change arguments of tcf_block_get_ext() for the case when CONFIG_NET_CLS
is not set.

Fixes: c8a8f8d67d0f ("net: sch: api: add extack support in tcf_block_get")
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h