linux_dsm_epyc7002/drivers/net/ethernet
Yishai Hadas c5ae1954c4 IB/mlx5: Use mlx5 core to create/destroy a DEVX DCT
To prevent a hardware memory leak when a DEVX DCT object is destroyed
without calling DRAIN DCT before, (e.g. under cleanup flow), need to
manage its creation and destruction via mlx5 core.

In that case the DRAIN DCT command will be called and only once that it
will be completed the DESTROY DCT command will be called.  Otherwise, the
DESTROY DCT may fail and a hardware leak may occur.

As of that change the DRAIN DCT command should not be exposed any more
from DEVX, it's managed internally by the driver to work as expected by
the device specification.

Fixes: 7efce3691d ("IB/mlx5: Add obj create and destroy functionality")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-03-17 21:40:39 -03:00
..
3com
8390 net: 8390: fix potential NULL pointer dereferences 2019-03-12 14:49:49 -07:00
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon
amd
apm
apple
aquantia
arc
atheros
aurora
broadcom 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
brocade
cadence
calxeda
cavium net: thunder: fix a potential NULL pointer dereference 2019-03-11 13:34:31 -07:00
chelsio 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
cirrus
cisco enic: fix build warning without CONFIG_CPUMASK_OFFSTACK 2019-03-07 09:41:08 -08:00
cortina
davicom
dec
dlink
emulex
ezchip
faraday
freescale ARM: SoC driver updates for 5.1 2019-03-06 09:41:12 -08:00
fujitsu net: fujitsu: fix a potential NULL pointer dereference 2019-03-12 14:48:35 -07:00
hisilicon net: hns3: fix to stop multiple HNS reset due to the AER changes 2019-03-09 22:58:47 -08:00
hp
huawei
i825xx
ibm
intel
marvell
mediatek
mellanox IB/mlx5: Use mlx5 core to create/destroy a DEVX DCT 2019-03-17 21:40:39 -03:00
micrel
microchip lan743x: Fix TX Stall Issue 2019-03-13 13:41:46 -07:00
moxa
mscc
myricom
natsemi
neterion
netronome nfp: fix simple vNIC mailbox length 2019-03-07 11:00:21 -08:00
ni
nuvoton
nvidia
nxp
oki-semi pci-v5.1-changes 2019-03-09 14:57:08 -08:00
packetengines
pasemi
qlogic net: qlogic: fix a potential NULL pointer dereference 2019-03-12 14:44:43 -07:00
qualcomm
rdc
realtek 8139too : Add support for U.S. Robotics USR997901A 10/100 Cardbus NIC 2019-03-08 15:23:23 -08:00
renesas net: sh_eth: fix a missing check of of_get_phy_mode 2019-03-12 14:51:02 -07:00
rocker net: rocker: fix a potential NULL pointer dereference 2019-03-11 16:17:31 -07:00
samsung
seeq
sfc
sgi
silan
sis
smsc
socionext
stmicro net: dwmac-sun8i: fix a missing check of of_get_phy_mode 2019-03-12 14:52:00 -07:00
sun net: ethernet: sun: Zero initialize class in default case in niu_add_ethtool_tcam_entry 2019-03-08 15:26:21 -08:00
synopsys
tehuti
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-03-11 08:54:01 -07:00
toshiba
tundra
via
wiznet
xilinx
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
lantiq_xrx200.c
Makefile
netx-eth.c