summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2020-01-25 14:17:09 +0300
committerDavid S. Miller <davem@davemloft.net>2020-01-27 13:03:44 +0300
commitd48834f9d4b4e7611cc84ac2c5018f1b420d59c2 (patch)
tree1b30b5e4c33fde74699a46fb49e7a289bbc2be67 /drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
parent93642e14bd50e59b11cf6389ce3fc243e932777a (diff)
downloadlinux-d48834f9d4b4e7611cc84ac2c5018f1b420d59c2.tar.xz
mlx5: Use dev_net netdevice notifier registrations
Register the dev_net notifier and allow the per-net notifier to follow the device into different namespace. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/fs.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/fs.h b/drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
index d48292ccda29..0416f7712109 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
@@ -21,6 +21,7 @@ struct mlx5e_tc_table {
DECLARE_HASHTABLE(hairpin_tbl, 8);
struct notifier_block netdevice_nb;
+ struct netdev_net_notifier netdevice_nn;
};
struct mlx5e_flow_table {