linux-stable/drivers/net/ethernet
Eran Ben Elisha e7f860e210 net/mlx5: Fix a bug of releasing wrong chunks on > 4K page size systems
On systems with page size larger than 4K, a fwp object has few 4K chunks.
Fix a bug in fwp free flow where the chunk address was dropped and
fwp->addr was used instead (first chunk address). This caused a wrong
update of fwp->bitmask which later can cause errors in re-alloc fwp
chunk flow.

In order to fix this it, re-factor the release flow:
- Free 4k: Releases a specific 4k chunk inside the fwp, defined by
  starting address.
- Free fwp: Unconditionally release the whole fwp and its resources.
Free addr will call free fwp if all chunks were released, in order to do
code sharing.

In addition, fix npages to count for all released chunks correctly.

Fixes: c6168161f6 ("net/mlx5: Add support for release all pages event")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2020-05-15 15:44:15 -07:00
..
3com docs: networking: device drivers: convert 3com/vortex.txt to ReST 2020-05-01 12:24:41 -07:00
8390
adaptec drivers: Remove inclusion of vermagic header 2020-04-21 13:27:37 -07:00
aeroflex
agere net: agere: use true,false for bool variable 2020-05-05 11:39:42 -07:00
alacritech
allwinner net: allwinner: Fix use correct return type for ndo_start_xmit() 2020-05-05 11:14:40 -07:00
alteon
altera net: altera: Fix use correct return type for ndo_start_xmit() 2020-05-05 11:15:41 -07:00
amazon ena: Add XDP frame size to amazon NIC driver 2020-05-14 21:21:55 -07:00
amd net: atarilance: Replace zero-length array with flexible-array 2020-05-11 13:18:54 -07:00
apm
apple
aquantia net: atlantic: unify MAC generation 2020-05-09 11:47:25 -07:00
arc
atheros net/atheros: remove redundant assignment to variable size 2020-05-08 22:46:36 -07:00
aurora
broadcom Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
brocade
cadence net: macb: fix an issue about leak related system resources 2020-05-03 16:01:48 -07:00
calxeda
cavium net: thunderx: Add XDP frame size 2020-05-14 21:21:55 -07:00
chelsio cxgb4: add EOTID tracking and software context dump 2020-05-15 10:54:07 -07:00
cirrus docs: networking: device drivers: convert cirrus/cs89x0.txt to ReST 2020-05-01 12:24:41 -07:00
cisco
cortina net: cortina: Fix use correct return type for ndo_start_xmit() 2020-05-06 13:57:30 -07:00
davicom
dec net: tulip: de4x5: make PCI_signature() return void 2020-05-07 13:04:21 -07:00
dlink docs: networking: device drivers: convert dlink/dl2k.txt to ReST 2020-05-01 12:24:42 -07:00
emulex
ezchip
faraday net/faraday: Fix unnecessary check in ftmac100_probe() 2020-04-30 12:20:54 -07:00
freescale Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
fujitsu
google
hisilicon Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
huawei Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
i825xx
ibm ibmvnic: Skip fatal error reset after passive init 2020-04-30 13:27:17 -07:00
intel xdp: For Intel AF_XDP drivers add XDP frame_sz 2020-05-14 21:21:56 -07:00
marvell Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
mediatek net: mediatek: Fix use correct return type for ndo_start_xmit() 2020-05-06 14:19:42 -07:00
mellanox net/mlx5: Fix a bug of releasing wrong chunks on > 4K page size systems 2020-05-15 15:44:15 -07:00
micrel Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2020-03-29 21:25:29 -07:00
microchip Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
moxa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-06 22:10:13 -07:00
mscc net: remove newlines in NL_SET_ERR_MSG_MOD 2020-05-07 17:56:14 -07:00
myricom myri10ge: Remove unused inline function myri10ge_vlan_ip_csum 2020-05-05 12:07:43 -07:00
natsemi net/sonic: Fix a resource leak in an error handling path in 'jazz_sonic_probe()' 2020-04-27 12:07:46 -07:00
neterion docs: networking: device drivers: convert neterion/vxge.txt to ReST 2020-05-01 12:24:42 -07:00
netronome Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
ni net: ni: Fix use correct return type for ndo_start_xmit() 2020-05-05 11:39:43 -07:00
nvidia
nxp net: nxp: Fix use correct return type for ndo_start_xmit() 2020-05-05 11:17:56 -07:00
oki-semi
packetengines
pasemi
pensando Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
qlogic qlogic/qede: Add XDP frame size to driver 2020-05-14 21:21:55 -07:00
qualcomm net: emac: Fix use correct return type for ndo_start_xmit() 2020-05-05 11:20:23 -07:00
rdc
realtek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
renesas net: renesas: Fix use correct return type for ndo_start_xmit() 2020-05-06 14:13:39 -07:00
rocker
samsung
seeq
sfc sfc: Add XDP frame size 2020-05-14 21:21:54 -07:00
sgi net: meth: remove spurious copyright text 2020-04-23 15:59:43 -07:00
silan
sis
smsc docs: networking: device drivers: convert smsc/smc9.txt to ReST 2020-05-01 12:24:42 -07:00
socionext net: netsec: Add support for XDP frame size 2020-05-14 21:21:54 -07:00
stmicro Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
sun net: sun: cassini: Remove unused inline functions 2020-05-05 12:07:43 -07:00
synopsys
tehuti net: tehuti: remove unused inline function bdx_tx_db_size 2020-05-05 12:07:42 -07:00
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
toshiba Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-06 22:10:13 -07:00
tundra
via via-rhine: Add platform dependencies 2020-05-07 13:16:53 -07:00
wiznet
xilinx net: ll_temac: Fix return value check in temac_probe() 2020-04-30 20:39:22 -07:00
xircom
xscale net: ethernet: ixp4xx: Add error handling in ixp4xx_eth_probe() 2020-04-23 15:32:45 -07:00
Kconfig
Makefile
dnet.c net: ethernet: dnet: convert to devm_platform_get_and_ioremap_resource 2020-04-20 12:18:13 -07:00
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
korina.c
lantiq_etop.c
lantiq_xrx200.c net: lantiq: Fix use correct return type for ndo_start_xmit() 2020-05-06 14:24:06 -07:00