]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix the FD sideband logic to detect a FD table full condition
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Wed, 4 Jun 2014 04:22:47 +0000 (04:22 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Jun 2014 11:45:30 +0000 (04:45 -0700)
commit4e8fb76d4eb82be2919a0b32390fb9835102a195
tree8d7e8f6a4c264eccaa23f10776ee27667716a8d1
parent9ca430ce2452d9639f0b275d83c892bbfd5b287c
i40e: Fix the FD sideband logic to detect a FD table full condition

Hardware does not have a way of telling a PF how much of the global
shared FD table space is still available or is consumed.
Previously, every PF but PF0 would think there was still space available
when there wasn't. The PFs would continue to try to add filters and fail.
With this new logic if a filter programming error is detected we just
check if we are close to the guaranteed space full and that can be used
as a hint to say, there might not be space and we should turn off the
features. This way we can turn off the feature in SW for all PFs in
time.

Change-ID: I725cb2fab16c033f883056362b4542c1400503c5
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c