Ido Schimmel 86cb13e4ec mlxsw: spectrum: Fix compilation error when CLS_ACT isn't set
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 <fengguang.wu@intel.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-25 17:57:33 -07:00
..
2016-06-18 06:04:01 -10:00
2016-05-19 11:27:09 -07:00
2016-05-31 22:17:05 +05:30
2016-07-16 06:11:59 +09:00
2016-05-18 16:38:59 -07:00
2016-07-18 11:50:40 +02:00
2016-07-25 11:09:19 -07:00
2016-07-20 23:39:36 -07:00
2016-05-27 15:26:11 -07:00
2016-04-30 13:56:46 -07:00
2016-06-15 09:51:35 +01:00
2016-05-20 21:26:15 -07:00
2016-05-29 22:32:27 -07:00
2016-05-20 18:33:37 -07:00
2016-06-07 15:56:31 -07:00
2016-04-30 14:15:56 -07:00
2016-07-06 22:32:15 -07:00
2016-05-01 14:11:12 -07:00
2016-05-31 21:25:52 -06:00
2016-07-01 05:32:17 -04:00
2016-05-31 08:20:43 +03:00
2016-05-23 11:18:01 -07:00