Thread (20 messages) flat view 20 messages, 3 authors, 1d ago

Re: [PATCH net-next V3 01/15] net/mlx5e: Generalize TC <-> IPsec mutual exclusion

From: "Daniel Zahka" <daniel.zahka@gmail.com>
Date: 2026-09-04 13:25:02
Also in: bpf, linux-kselftest, linux-rdma, lkml

On Thu Sep 3, 2026 at 4:52 AM EDT, Tariq Toukan wrote:
-#ifdef CONFIG_MLX5_ESWITCH
-static int mlx5e_ipsec_block_tc_offload(struct mlx5_core_dev *mdev)
-{
-	struct mlx5_eswitch *esw = mdev->priv.eswitch;
-	int err = 0;
-
-	if (esw) {
-		err = mlx5_esw_lock(esw);
This appears to the last caller of mlx5_esw_lock(), so the function will
be dead code after this patch.
-		if (err)
-			return err;
-	}
-
-	if (mdev->num_block_ipsec) {
-		err = -EBUSY;
-		goto unlock;
-	}
-
-	mdev->num_block_tc++;
-
-unlock:
-	if (esw)
-		mlx5_esw_unlock(esw);
-
-	return err;
-}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help