]> asedeno.scripts.mit.edu Git - linux.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)
commit640a8af5841fd66a26e26f5b9fb5476a3755852a
treed61ffd0381cff3d8430205a097d8660cfdc74265
parente3c72f3d37e4745dc3a6ae69f5fc2bd4c31ca4eb
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