summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2017-12-06 09:41:12 +0100
committerDavid S. Miller <davem@davemloft.net>2017-12-06 15:11:17 -0500
commit9454d9307e05989bc5dd50c023acd51d632fe6f9 (patch)
tree760e31e40fe9626e80c2b8df7b1ca8cb3aaaceff /drivers/net/ethernet/mellanox/mlxsw/spectrum.h
parentcc166427dcdab39a96140fded18ac23be5f0a1ed (diff)
downloadop-kernel-dev-9454d9307e05989bc5dd50c023acd51d632fe6f9.zip
op-kernel-dev-9454d9307e05989bc5dd50c023acd51d632fe6f9.tar.gz
mlxsw: spectrum: handle NETIF_F_HW_TC changes correctly
Currently, whenever the NETIF_F_HW_TC feature changes, we silently always allow it, but we actually do not disable the flows in HW on disable. That breaks user's expectations. So just forbid the feature disable in case there are any filters offloaded. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
index 432ab9b..a0adcd8 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
@@ -270,6 +270,7 @@ struct mlxsw_sp_port {
struct mlxsw_sp_port_sample *sample;
struct list_head vlans_list;
struct mlxsw_sp_qdisc root_qdisc;
+ unsigned acl_rule_count;
};
static inline bool
OpenPOWER on IntegriCloud