aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-05-10 20:19:29 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2020-03-09 16:58:48 -0700
commit6783e8b29f636383af293a55336f036bc7ad5619 (patch)
tree119a88e07c0fcb49cc5a74e0739122c15b2ef6b9
parentnet/mlx5e: Show/set Rx flow indir table and RSS hash key on ul rep (diff)
downloadwireguard-linux-6783e8b29f636383af293a55336f036bc7ad5619.tar.xz
wireguard-linux-6783e8b29f636383af293a55336f036bc7ad5619.zip
net/mlx5e: Init ethtool steering for representors
During transition to uplink representors the code responsible for initializing ethtool steering functionality wasn't added to representor init rx routine. This causes NULL pointer dereference during configuration of network flow classification rule with ethtool (only possible to reproduce with next commit in this series which registers necessary ethtool callbacks). Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_rep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
index 9ff0a8e6858e..5a7de0e93f8f 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
@@ -1685,6 +1685,8 @@ static int mlx5e_init_rep_rx(struct mlx5e_priv *priv)
if (err)
goto err_destroy_root_ft;
+ mlx5e_ethtool_init_steering(priv);
+
return 0;
err_destroy_root_ft: