]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBrian Maly <brian.maly@oracle.com>
Mon, 31 Aug 2015 21:21:11 +0000 (17:21 -0400)
commita2dfefba58a73258fec419224f222e881cb952c8
treedfb81377090f3dc6c5002e395f2acd9ba152a9da
parentf6da505b8b48612f9a49b0f98ece61eace617c2b
i40e: Fix legacy interrupt mode in the driver

Orabug: 21764569

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>
(cherry picked from commit 26cdc443fd8fccccdfb17fd2845cf9233a995325)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c