net/ice/base: change flow and profile removal
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:18:44 +0000 (23:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:49 +0000 (20:31 +0200)
commita0b1a2629b220ac082f067003f4be8edff031487
treecee616cca750f5ca19787fac913d851c7b189dc6
parente10a21d7b6a5326710d3e50e709f5b6694c008d1
net/ice/base: change flow and profile removal

- Add function to remove ES profile map as it is now being used in
clearing and freeing HW tables.
- Locks were initially not used for releasing ES profile maps and
flow profiles as the sequence is part of driver unload. Adding
calls to acquire and release locks to ensure that any calls made
by the VF VSI during VFR or unload do not result in memory
access violations.

Signed-off-by: Vignesh Sridhar <vignesh.sridhar@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c