]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: reset the invalid msg counter in vf when a valid msg is received
authorJingjing Wu <jingjing.wu@intel.com>
Mon, 28 Sep 2015 18:12:39 +0000 (14:12 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:53 +0000 (08:32 -0800)
commitddd9e47e9f53ff52bb7419f69dcd48c8e1ac87d3
treed72d0621e904f58e19e9b1818944304c12434669
parent05fcc34c1b9af00ad81fb7f7897a8877b8c45379
i40e: reset the invalid msg counter in vf when a valid msg is received

Orabug: 22342532

When the number of invalid messages from a VF is exceeded, the VF
will be disabled, due to the invalid messages.  This happens if
other VF drivers (like DPDK) send a message through the driver's
mailbox (aka virtchannel) interface, but the message is not
supported by the i40e pf driver, such as CONFIG_PROMISCUOUS_MODE.

This patch changes the num_invalid_msgs in struct i40e_vf to record
the continuous invalid msgs, and it will be reset when a valid msg
is received.

Change-ID: Iaec42fd3dcdd281476b3518be23261dd46fc3718
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 5d38c93e7111a68fc7b9f771bf420d9e026a21de)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h