We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca4625a commit 684cbabCopy full SHA for 684cbab
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
@@ -135,6 +135,16 @@ static void arfs_del_rules(struct mlx5e_flow_steering *fs);
135
136
int mlx5e_arfs_disable(struct mlx5e_flow_steering *fs)
137
{
138
+ /* Moving to switchdev mode, fs->arfs is freed by mlx5e_nic_profile
139
+ * cleanup_rx callback and it is not recreated when
140
+ * mlx5e_uplink_rep_profile is loaded as mlx5e_create_flow_steering()
141
+ * is not called by the uplink_rep profile init_rx callback. Thus, if
142
+ * ntuple is set, moving to switchdev flow will enter this function
143
+ * with fs->arfs nullified.
144
+ */
145
+ if (!mlx5e_fs_get_arfs(fs))
146
+ return 0;
147
+
148
arfs_del_rules(fs);
149
150
return arfs_disable(fs);
0 commit comments