]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: Reorder configure_clsflower to avoid deadlock on error
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 19 Mar 2018 16:28:03 +0000 (09:28 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 19 Mar 2018 16:28:03 +0000 (09:28 -0700)
commit139239f92a21c1c27deb44aa493fd8d1ea055fd6
treed61ffd0381cff3d8430205a097d8660cfdc74265
parent19060bebd04be718e31dd4b6436a18cb7d80a04b
i40evf: Reorder configure_clsflower to avoid deadlock on error

While doing some code review I noticed that we can get into a state where
we exit with the "IN_CRITICAL_TASK" bit set while notifying the PF of
flower filters. This patch is meant to address that plus tweak the ordering
of the while loop waiting on it slightly so that we don't wait an extra
period after we have failed for the last time.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c