Ubuntu-focal-kernel/drivers/net
Maor Dickman 3f2536e027 net/mlx5: Geneve, Fix handling of Geneve object id as error code
BugLink: https://bugs.launchpad.net/bugs/2017706

[ Upstream commit d28a06d7dbedc598a06bd1e53a28125f87ca5d0c ]

On success, mlx5_geneve_tlv_option_create returns non negative
Geneve object id. In case the object id is positive value the
caller functions will handle it as an error (non zero) and
will fail to offload the Geneve rule.

Fix this by changing caller function ,mlx5_geneve_tlv_option_add,
to return 0 in case valid non negative object id was provided.

Fixes: 0ccc171ea6 ("net/mlx5: Geneve, Manage Geneve TLV options")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-05-12 17:15:14 +02:00
..
appletalk
arcnet
bonding bonding: fix error checking in bond_debug_reregister() 2023-04-18 17:21:01 +02:00
caif
can can: esd_usb: Move mislocated storage of SJA1000_ECC_SEG bits in case of a bus error 2023-05-12 17:15:02 +02:00
dsa net: dsa: microchip: ksz9477: port map correction in ALU table entry register 2023-03-21 10:08:58 +01:00
ethernet net/mlx5: Geneve, Fix handling of Geneve object id as error code 2023-05-12 17:15:14 +02:00
fddi net: defxx: Fix missing err handling in dfx_init() 2023-02-01 15:22:40 +01:00
fjes
hamradio hamradio: baycom_epp: Fix return type of baycom_send_packet() 2023-02-01 15:23:11 +01:00
hippi
hyperv hv_netvsc: Fix race between VF offering and VF association message from host 2023-01-06 08:44:10 -08:00
ieee802154 ca8210: Fix crash by zero initializing data 2023-02-01 15:21:53 +01:00
ipvlan
netdevsim
phy net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY 2023-04-18 17:21:01 +02:00
plip net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq() 2023-02-01 15:21:59 +01:00
ppp ppp: associate skb with a device at tx 2023-02-01 15:23:13 +01:00
slip
team
usb net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path 2023-04-18 17:21:04 +02:00
vmxnet3
wan net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs 2023-03-21 10:08:57 +01:00
wimax
wireless wifi: ath9k: use proper statements in conditionals 2023-05-12 17:15:12 +02:00
xen-netback xen-netback: move removal of "hotplug-status" to the right place 2023-02-01 15:22:05 +01:00
Kconfig
LICENSE.SRC
Makefile
Space.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c net: loopback: use NET_NAME_PREDICTABLE for name_assign_type 2023-02-01 15:22:06 +01:00
macsec.c
macvlan.c macvlan: enforce a consistent minimal mtu 2023-02-01 15:21:17 +01:00
macvtap.c
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c ntb_netdev: Use dev_kfree_skb_any() in interrupt context 2023-02-01 15:22:43 +01:00
rionet.c
sb1000.c
sungem_phy.c
tap.c tap: tap_open(): correctly initialize socket uid 2023-05-12 17:15:01 +02:00
thunderbolt.c net: thunderbolt: Fix error handling in tbnet_init() 2023-02-01 15:21:10 +01:00
tun.c tun: tun_chr_open(): correctly initialize socket uid 2023-05-12 17:15:01 +02:00
veth.c
virtio_net.c virtio-net: Keep stop() to follow mirror sequence of open() 2023-04-18 17:20:59 +02:00
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c xen-netfront: Fix NULL sring after live migration 2023-02-01 15:21:56 +01:00