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

2016-07-25 Thread David Miller
From: Ido Schimmel 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 re

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

2016-07-25 Thread Ido Schimmel
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 ("m