From: Ido Schimmel <[email protected]>
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 <[email protected]>
> Signed-off-by: Jiri Pirko <[email protected]>
> Signed-off-by: Ido Schimmel <[email protected]>
Applied.