mirror-linux/drivers/net
Jianbo Liu 011be342dd net/mlx5e: Skip ESN replay window setup for IPsec crypto offload
Commit a5e400a985 ("net/mlx5e: Honor user choice of IPsec replay
window size") introduced logic to setup the ESN replay window size.
This logic is only valid for packet offload.

However, the check to skip this block only covered outbound offloads.
It was not skipped for crypto offload, causing it to fall through to
the new switch statement and trigger its WARN_ON default case (for
instance, if a window larger than 256 bits was configured).

Fix this by amending the condition to also skip the replay window
setup if the offload type is not XFRM_DEV_OFFLOAD_PACKET.

Fixes: a5e400a985 ("net/mlx5e: Honor user choice of IPsec replay window size")
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1769503961-124173-5-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-01-28 20:51:29 -08:00
..
arcnet
bonding bonding: fix use-after-free due to enslave fail after slave array update 2026-01-27 15:17:47 +01:00
caif
can can: gs_usb: gs_usb_receive_bulk_callback(): fix error message 2026-01-23 18:16:37 +01:00
dsa net: dsa: yt921x: Fix MIB overflow wraparound routine 2026-01-25 15:16:01 -08:00
ethernet net/mlx5e: Skip ESN replay window setup for IPsec crypto offload 2026-01-28 20:51:29 -08:00
fddi
fjes fjes: Add missing iounmap in fjes_hw_init() 2025-12-22 12:11:32 +01:00
hamradio
hippi
hyperv net: hv_netvsc: reject RSS hash key programming without RX indirection table 2026-01-13 19:07:31 -08:00
ieee802154
ipa
ipvlan ipvlan: Make the addrs_lock be per port 2026-01-19 10:03:30 -08:00
mctp
mdio net: mdio: rtl9300: use scoped for loops 2025-12-28 08:55:48 +01:00
netdevsim netdevsim: fix a race issue related to the operation on bpf_bound_progs list 2026-01-20 17:18:52 +01:00
ovpn
pcs net: pcs: pcs-mtk-lynxi: report in-band capability for 2500Base-X 2026-01-21 20:01:03 -08:00
phy net: phy: micrel: fix clk warning when removing the driver 2026-01-28 20:10:39 -08:00
plip
ppp
pse-pd
slip
team team: fix check for port enabled in team_queue_override_port_prio_changed() 2025-12-23 09:07:48 +01:00
thunderbolt
usb usbnet: limit max_mtu based on device's hard_mtu 2026-01-20 18:58:54 -08:00
vmxnet3
vxlan
wan
wireguard
wireless ath.git update for v6.19-rc6 2026-01-14 10:41:45 +01:00
wwan net: wwan: t7xx: fix potential skb->frags overflow in RX path 2026-01-25 14:43:32 -08:00
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c macvlan: fix possible UAF in macvlan_forward_source() 2026-01-09 18:16:06 -08:00
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
sungem_phy.c
tap.c
tun.c
tun_vnet.h
veth.c veth: fix data race in veth_get_ethtool_stats 2026-01-17 16:22:18 -08:00
virtio_net.c virtio_net: Fix misalignment bug in struct virtnet_info 2026-01-15 10:18:42 +01:00
vrf.c
vsockmon.c
xen-netfront.c