]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: fix hang when re-binding VF host drv after running DPDK VF driver
authorRick Farrington <ricardo.farrington@cavium.com>
Fri, 13 Jul 2018 19:50:21 +0000 (12:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 21:02:00 +0000 (14:02 -0700)
commitb4e25e642e0651cf6bef63dc99cdfa669f26717a
tree7bd9b6107cb7cebc1246cfcc5c93e0960cf09046
parentfe0b7b552d3b34649fe61338a2f0084f66fc5a02
liquidio: fix hang when re-binding VF host drv after running DPDK VF driver

When configuring SLI_PKTn_OUTPUT_CONTROL, VF driver was assuming that IPTR
mode was disabled by reset, which was not true.  Since DPDK driver had
set IPTR mode previously, the VF driver (which uses buf-ptr-only mode) was
not properly handling DROQ packets (i.e. it saw zero-length packets).

This represented an invalid hardware configuration which the driver could
not handle.

Signed-off-by: Rick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c
drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c