mirror-linux/drivers/net
Ivan Vecera 573fa2b708 i40e: Fix adding unsupported cloud filters
[ Upstream commit 4e20655e50 ]

If a VF tries to add unsupported cloud filter through virtchnl
then i40e_add_del_cloud_filter(_big_buf) returns -ENOTSUPP but
this error code is stored in 'ret' instead of 'aq_ret' that
is used as error code sent back to VF. In this scenario where
one of the mentioned functions fails the value of 'aq_ret'
is zero so the VF will incorrectly receive a 'success'.

Use 'aq_ret' to store return value and remove 'ret' local
variable. Additionally fix the issue when filter allocation
fails, in this case no notification is sent back to the VF.

Fixes: e284fc2804 ("i40e: Add and delete cloud filter")
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20231121211338.3348677-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-03 07:32:08 +01:00
..
appletalk
arcnet net: arcnet: Do not call kfree_skb() under local_irq_disable() 2023-09-13 09:42:35 +02:00
bonding bonding: stop the device in bond_setup_by_slave() 2023-11-28 17:07:05 +00:00
caif
can can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds 2023-11-20 11:51:53 +01:00
dsa net: dsa: lan9303: consequently nested-lock physical MDIO 2023-11-28 17:07:18 +00:00
ethernet i40e: Fix adding unsupported cloud filters 2023-12-03 07:32:08 +01:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154 net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show() 2023-11-02 09:35:27 +01:00
ipa net: ipa: only reset hashed tables when supported 2023-08-11 12:08:09 +02:00
ipvlan ipvlan: add ipvlan_route_v6_outbound() helper 2023-11-28 17:07:04 +00:00
mctp
mdio
netdevsim
pcs net: pcs: Add missing put_device call in miic_create 2023-08-23 17:52:33 +02:00
phy net: phylink: initialize carrier state at creation 2023-11-28 17:07:18 +00:00
plip
ppp ppp: limit MRU to 64K 2023-11-28 17:07:05 +00:00
pse-pd
slip
team team: fix null-ptr-deref when team device type is changed 2023-10-06 14:56:41 +02:00
usb net: usb: ax88179_178a: fix failed operations during ax88179_reset 2023-12-03 07:32:07 +01:00
vmxnet3
vxlan neighbour: annotate lockless accesses to n->nud_state 2023-10-10 22:00:42 +02:00
wan drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close() 2023-10-10 22:00:40 +02:00
wireguard wireguard: use DEV_STATS_INC() 2023-12-03 07:32:07 +01:00
wireless wifi: wilc1000: use vmm_table as array in wilc struct 2023-11-28 17:07:11 +00:00
wwan
xen-netback xen-netback: use default TX queue size for vifs 2023-10-19 23:08:53 +02:00
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c gtp: fix fragmentation needed check with gso 2023-11-02 09:35:28 +01:00
ifb.c
loopback.c
macsec.c net: add DEV_STATS_READ() helper 2023-11-20 11:51:55 +01:00
macvlan.c macvlan: Don't propagate promisc change to lower dev in passthru 2023-11-28 17:07:06 +00:00
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c net: tap_open(): set sk_uid from current_fsuid() 2023-08-11 12:08:20 +02:00
thunderbolt.c net: thunderbolt: Fix TCPv6 GSO checksum calculation 2023-10-06 14:57:04 +02:00
tun.c tun: prevent negative ifindex 2023-10-25 12:03:06 +02:00
veth.c veth: Fixing transmit return status for dropped packets 2023-09-19 12:28:02 +02:00
virtio_net.c virtio-net: Zero max_tx_vq field for VIRTIO_NET_CTRL_MQ_HASH_CONFIG case 2023-08-23 17:52:39 +02:00
vrf.c vrf: Fix lockdep splat in output path 2023-10-10 22:00:46 +02:00
vsockmon.c
xen-netfront.c