]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b2db87c7213e2e32aeafc305acdc90a51967084
tree0fa887623cac748a72a07ffd2bada92cd178db31
parentaf186d92330570cee896030d13474c0dac9b1d8d
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