]> 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)
commitf82b57d3693742e711e35af5e2e3b56a702b1395
treed61ffd0381cff3d8430205a097d8660cfdc74265
parente55957631d97c0dd3368e1c6215f43a993968f12
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