numam-dpdk/drivers/net/qede
Rasesh Mody eb35c732fe net/qede/base: fix for VF malicious indication
IOV regression testing led to discovery of a minor issue + possibly race
in IOV flows:
 a. Malicious indications in VF-database on PF-side get cleared during
    FLR flows - but not when disabling SRIOV. At least in Linux if you
    disable IOV while having a malicious VF you wouldn't be able to
    clear the indication as driver would prevent from initializing it.
 b. Possible race during PF response to VF - the channel is made ready
    only after sending the rc via dmae to VF. It's possible due to
    context switch at end of DMAE [when releasing Mutex] that VF would
    start running and send another message prior to PF clearing the
    channel, making the FW consider that VF to be malicious.

This patch fixes that by
 - clearing the indication even if we're only going to disable VF
 - resetting the channel to ready before PF copies the rc to the VF, PF
   can then continue and send an additional message

Fixes: 47b302d646 ("net/qede/base: add handling of malicious VF")
Fixes: 86a2265e59 ("qede: add SRIOV support")
Cc: stable@dpdk.org

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
2017-10-12 01:36:58 +01:00
..
base net/qede/base: fix for VF malicious indication 2017-10-12 01:36:58 +01:00
LICENSE.qede_pmd qede: add base driver 2016-05-06 15:51:22 +02:00
Makefile net/qede: refactoring multi-queue implementation 2017-06-12 10:41:29 +01:00
qede_ethdev.c net/qede/base: add new macro for CMT mode 2017-10-06 02:49:49 +02:00
qede_ethdev.h net/qede/base: update PMD version to 2.6.0.1 2017-10-06 02:49:49 +02:00
qede_fdir.c net/qede/base: add new macro for CMT mode 2017-10-06 02:49:49 +02:00
qede_if.h ethdev: increase port id range 2017-10-06 18:23:25 +02:00
qede_logs.h net/qede: change debug verbosity of messages 2017-07-06 15:00:57 +02:00
qede_main.c net/qede/base: disable aRFS for NPAR and 100G 2017-10-06 02:49:49 +02:00
qede_rxtx.c net/qede: fix compilation with -Og 2017-10-06 02:49:50 +02:00
qede_rxtx.h net/qede: add Tx offloads for MPLS-in-UDP packets 2017-07-06 15:00:57 +02:00
rte_pmd_qede_version.map qede: add core driver 2016-05-06 15:51:22 +02:00