Patch "net/mlx5: Release tunnel device after tc update skb" has been added to the 6.3-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net/mlx5: Release tunnel device after tc update skb

to the 6.3-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-mlx5-release-tunnel-device-after-tc-update-skb.patch
and it can be found in the queue-6.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 12c356479c35610c8e5dbbc850ca4325babcfabb
Author: Chris Mi <cmi@xxxxxxxxxx>
Date:   Tue Apr 4 03:45:04 2023 +0300

    net/mlx5: Release tunnel device after tc update skb
    
    [ Upstream commit 4fbef0f8ea6350eaea89b1e3175f9325252913ac ]
    
    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: 93a1ab2c545b ("net/mlx5: Refactor tc miss handling to a single function")
    Signed-off-by: Chris Mi <cmi@xxxxxxxxxx>
    Reviewed-by: Maor Dickman <maord@xxxxxxxxxx>
    Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
index 8f7452dc00ee3..668fdee9cf057 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
@@ -715,5 +715,6 @@ void mlx5e_rep_tc_receive(struct mlx5_cqe64 *cqe, struct mlx5e_rq *rq,
 	return;
 
 free_skb:
+	dev_put(tc_priv.fwd_dev);
 	dev_kfree_skb_any(skb);
 }



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux