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)
commitac13d6d8eaded15c67265eafc32f439ea3a0ac4a
tree7bd9b6107cb7cebc1246cfcc5c93e0960cf09046
parent7e2bc7fb65d544bb8598a0ab64e40ee9c60ded6e
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