WSL2-Linux-Kernel/drivers
Daniel Wagner 1ba2e507f5 nvme-tcp: Do not reset transport on data digest errors
The spec says

  7.4.6.1 Digest Error handling

  When a host detects a data digest error in a C2HData PDU, that host
  shall continue processing C2HData PDUs associated with the command and
  when the command processing has completed, if a successful status was
  returned by the controller, the host shall fail the command with a
  non-fatal transport error.

Currently the transport is reseted when a data digest error is
detected. Instead, when a digest error is detected, mark the final
status as NVME_SC_DATA_XFER_ERROR and let the upper layer handle
the error.

In order to keep track of the final result maintain a status field in
nvme_tcp_request object and use it to overwrite the completion queue
status (which might be successful even though a digest error has been
detected) when completing the request.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-09-06 10:03:11 +02:00
..
accessibility
acpi Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
amba
android
ata ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
atm
auxdisplay
base printk changes for 5.15 2021-09-01 18:41:13 -07:00
bcma Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
block loop: reduce the loop_ctl_mutex scope 2021-09-03 22:14:40 -06:00
bluetooth
bus ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
cdrom
char TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
clk One hot fix for a NULL pointer deref in the Renesas usb clk driver 2021-08-29 12:52:17 -07:00
clocksource hyperv-next for 5.15 2021-09-01 18:25:20 -07:00
comedi
connector
counter
cpufreq
cpuidle
crypto crypto: ccp - Add support for new CCP/PSP device ID 2021-08-27 16:30:18 +08:00
cxl
dax Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
dca
devfreq
dio
dma ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
dma-buf
edac Updates to the interrupt core and driver subsystems: 2021-08-30 14:38:37 -07:00
eisa
extcon
firewire
firmware ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
fpga Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
fsi
gnss
gpio irqchip updates for Linux 5.15 2021-08-29 21:19:50 +02:00
gpu drm for v5.15-rc1 2021-09-01 11:26:46 -07:00
greybus
hid
hsi
hv hyperv-next for 5.15 2021-09-01 18:25:20 -07:00
hwmon hwmon: add driver for Aquacomputer D5 Next 2021-08-28 08:53:30 -07:00
hwspinlock
hwtracing Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
i2c Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
i3c
idle
iio IIO / Staging driver update for 5.15-rc1 2021-09-01 09:45:57 -07:00
infiniband Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-26 17:57:57 -07:00
input
interconnect
iommu ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
ipack TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
irqchip
isdn
leds
macintosh
mailbox
mcb
md - Add DM infrastructure for IMA-based remote attestion. These changes 2021-08-31 14:55:09 -07:00
media media updates for v5.15-rc1 2021-09-01 10:34:52 -07:00
memory
memstick Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
message
mfd IIO / Staging driver update for 5.15-rc1 2021-09-01 09:45:57 -07:00
misc TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
mmc TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
most
mtd
mux
net ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
nfc
ntb
nubus
nvdimm Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
nvme nvme-tcp: Do not reset transport on data digest errors 2021-09-06 10:03:11 +02:00
nvmem
of Devicetree updates for v5.15: 2021-09-01 18:34:51 -07:00
opp Merge branches 'pm-pci', 'pm-sleep', 'pm-domains' and 'powercap' 2021-08-30 19:25:42 +02:00
parisc
parport parport: remove non-zero check on count 2021-08-27 16:18:42 +02:00
pci Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
pcmcia
perf
phy Char / Misc driver changes for 5.15-rc1 2021-09-01 08:35:06 -07:00
pinctrl Updates to the interrupt core and driver subsystems: 2021-08-30 14:38:37 -07:00
platform TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
pnp
power power supply and reset changes for the v5.15 series 2021-08-30 11:47:32 -07:00
powercap
pps
ps3
ptp ptp: ocp: Simplify Kconfig. 2021-08-26 12:06:42 +01:00
pwm
rapidio
ras
regulator
remoteproc
reset ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
rpmsg
rtc
s390 TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
sbus
scsi Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
sh
siox
slimbus Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
soc ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
soundwire sound updates for 5.15-rc1 2021-09-01 10:29:29 -07:00
spi ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
spmi
ssb
staging media updates for v5.15-rc1 2021-09-01 10:34:52 -07:00
target
tc
tee
thermal
thunderbolt USB/Thunderbolt patches for 5.15-rc1 2021-09-01 09:59:34 -07:00
tty TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
uio
usb USB/Thunderbolt patches for 5.15-rc1 2021-09-01 09:59:34 -07:00
vdpa Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
vfio
vhost sock: remove one redundant SKB_FRAG_PAGE_ORDER macro 2021-08-26 10:46:20 +01:00
video
virt
virtio Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
visorbus
vlynq
vme
w1
watchdog
xen Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
zorro
Kconfig
Makefile