i40e: Fix legacy interrupt mode in the driver
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Fri, 10 Jul 2015 23:36:00 +0000 (19:36 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 26 Aug 2015 21:51:28 +0000 (14:51 -0700)
commit26cdc443fd8fccccdfb17fd2845cf9233a995325
tree0fa887623cac748a72a07ffd2bada92cd178db31
parent02b42498f383a6c24f7c751d4fe89a911a249242
i40e: Fix legacy interrupt mode in the driver

This patch fixes the driver flow to take into account legacy interrupts.
Over time we added code that assumes MSIX is the only mode that the
driver runs in. It also enables a legacy workaround to trigger SWINT
when the TX ring has non-cache aligned descriptors pending and interrupts
are disabled.

We work with a single vector in MSI mode too, so apply the same
restrictions as Legacy.

Change-ID: I826ddff1f9bd45d2dbe11f56a3ddcef0dbf42563
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c