Thread (2 messages) flat view 2 messages, 2 authors, 2016-07-26

Re: [PATCH net-next] mlxsw: spectrum: Fix compilation error when CLS_ACT isn't set

From: David Miller <davem@davemloft.net>
Date: 2016-07-26 00:57:47

From: Ido Schimmel <redacted>
Date: Mon, 25 Jul 2016 13:12:33 +0300
When CONFIG_NET_CLS_ACT isn't set 'struct tcf_exts' has no member named
'actions' and we therefore must not access it. Otherwise compilation
fails.

Fix this by introducing a new macro similar to tc_no_actions(), which
always returns 'false' if CONFIG_NET_CLS_ACT isn't set.

Fixes: 763b4b70afcd ("mlxsw: spectrum: Add support in matchall mirror TC offloading")
Reported-by: kbuild test robot <redacted>
Signed-off-by: Jiri Pirko <redacted>
Signed-off-by: Ido Schimmel <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help