]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:38:10 +0000 (08:38 +0200)
commit7ec40f0ab2582b91f1e943544e06e80f016871d2
tree148dc7ac181f5dadae3b73c9196478cda2f5b92b
parent6c4abbeb250948f916dce05e972861b263531008
liquidio: fix hang when re-binding VF host drv after running DPDK VF driver

[ Upstream commit ac13d6d8eaded15c67265eafc32f439ea3a0ac4a ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c
drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c