mlxsw: use tc_cls_can_offload_and_chain0()
authorJakub Kicinski <[email protected]>
Thu, 25 Jan 2018 22:00:51 +0000 (14:00 -0800)
committerDavid S. Miller <[email protected]>
Fri, 26 Jan 2018 02:23:09 +0000 (21:23 -0500)
commit15f4edb3d9c60a0934b133aae9c915807138cb4d
tree8f99fc867fd5b902356d78e468695ed68d02c4d4
parenta0d8637f0f59c4028b73ef1f319eca4f8b5beb53
mlxsw: use tc_cls_can_offload_and_chain0()

Make use of tc_cls_can_offload_and_chain0() to set extack msg in case
ethtool tc offload flag is not set or chain unsupported.

Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c