aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorCarolina Jubran <[email protected]>2025-07-08 21:16:23 +0000
committerJakub Kicinski <[email protected]>2025-07-10 02:47:43 +0000
commitade89d1f2486e5189b3a3f0a9e917defa4ff0779 (patch)
tree410fc37a596a5907b40593966fe52e8d1ce0f3c5 /net/unix/af_unix.c
parentvsock/test: fix test for null ptr deref when transport changes (diff)
downloadkernel-ade89d1f2486e5189b3a3f0a9e917defa4ff0779.tar.gz
kernel-ade89d1f2486e5189b3a3f0a9e917defa4ff0779.zip
net/mlx5e: Remove unused VLAN insertion logic in TX path
The VLAN insertion capability (`wqe_vlan_insert`) was never enabled on all mlx5 devices. When VLAN TX offload is advertised but this capability is not supported, the driver uses inline headers to insert the VLAN tag. To support this, the driver used to set the `MLX5E_SQ_STATE_VLAN_NEED_L2_INLINE` bit to enforce L2 inline mode when `wqe_vlan_insert` was not supported. Since the capability is disabled on all devices, this logic was always active, and the SQ flag has become redundant. L2 inline is enforced unconditionally for VLAN-tagged packets. The `skb_vlan_tag_present()` check in the else-if block of `mlx5e_sq_xmit_wqe()` is never true by this point in the TX flow, as the VLAN tag has already been inserted by the driver using inline headers. As a result, this code is never executed. Remove the redundant SQ state, dead VLAN insertion code block, and related logic. Signed-off-by: Carolina Jubran <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions