Skip to content

Commit 4fbef0f

Browse files
Chris MiSaeed Mahameed
authored andcommitted
net/mlx5: Release tunnel device after tc update skb
The cited commit causes a regression. Tunnel device is not released after tc update skb if skb needs to be freed. The following error message will be printed: unregister_netdevice: waiting for vxlan1 to become free. Usage count = 11 Fix it by releasing tunnel device if skb needs to be freed. Fixes: 93a1ab2 ("net/mlx5: Refactor tc miss handling to a single function") Signed-off-by: Chris Mi <[email protected]> Reviewed-by: Maor Dickman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 4c81893 commit 4fbef0f

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en/rep

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,5 +715,6 @@ void mlx5e_rep_tc_receive(struct mlx5_cqe64 *cqe, struct mlx5e_rq *rq,
715715
return;
716716

717717
free_skb:
718+
dev_put(tc_priv.fwd_dev);
718719
dev_kfree_skb_any(skb);
719720
}

0 commit comments

Comments
 (0)