Skip to content

Commit

Permalink
net/mlx5e: Init ethtool steering for representors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vlad Buslov authored and Saeed Mahameed committed Mar 9, 2020
1 parent 01013ad commit 6783e8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6783e8b

Please sign in to comment.