ice: Fix RSS profile locks
authorVignesh Sridhar <vignesh.sridhar@intel.com>
Thu, 30 Jul 2020 00:19:12 +0000 (17:19 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Sat, 1 Aug 2020 15:22:30 +0000 (08:22 -0700)
commitcdedbab92db4697f5a1d222d2d022cd6af3930e3
treed2f998e2fb3c71e94d55387a6cecf0d1e58675ed
parentf07d134d3772d8b9546e3eb3cf4d13848d3af6e1
ice: Fix RSS profile locks

Replacing flow profile locks with RSS profile locks in the function to
remove all RSS rules for a given VSI. This is to align the locks used
for RSS rule addition to VSI and removal during VSI teardown to avoid
a race condition owing to several iterations of the above operations.
In function to get RSS rules for given VSI and protocol header replacing
the pointer reference of the RSS entry with a copy of hash value to
ensure thread safety.

Signed-off-by: Vignesh Sridhar <vignesh.sridhar@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_flow.c