linux_dsm_epyc7002/drivers/net
Huazhong Tan 6b428b4fbf net: hns3: fix some reset handshake issue
Currently, the driver sets handshake status to tell the hardware
that the driver have downed the netdev and it can continue with
reset process. The driver will clear the handshake status when
re-initializing the CMDQ, and does not recover this status
when reset fail, which may cause the hardware to wait for
the handshake status to be set and not being able to continue
with reset process.

So this patch delays clearing handshake status just before UP,
and recovers this status when reset fail.

BTW, this patch adds a new function hclge(vf)_reset_handshake() to
deal with the reset handshake issue, and renames
HCLGE(VF)_NIC_CMQ_ENABLE to HCLGE(VF)_NIC_SW_RST_RDY which
represents this register bit more accurately.

Fixes: ada13ee3db ("net: hns3: add handshake with hardware while doing reset")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Reviewed-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-08-01 13:32:13 -04:00
..
appletalk
arcnet
bonding
caif
can net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
dsa net: dsa: bcm_sf2: use devm_platform_ioremap_resource() to simplify code 2019-08-01 13:10:34 -04:00
ethernet net: hns3: fix some reset handshake issue 2019-08-01 13:32:13 -04:00
fddi
fjes
hamradio
hippi
hyperv net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
ieee802154
ipvlan
netdevsim
phy net: phy: xgene: use devm_platform_ioremap_resource() to simplify code 2019-08-01 13:10:34 -04:00
plip
ppp
slip
team
usb net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
vmxnet3 net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
wan
wimax
wireless We have a reasonably large number of changes: 2019-07-31 08:59:41 -07:00
xen-netback net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00