net/ice/base: protect list add with lock
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:18:22 +0000 (23:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:48 +0000 (20:31 +0200)
commit421d265c2a8beebc4a70009424dce7c37cfc51c7
tree7c6dc6924631370ebc8f36e3c335cb1386bfc0d1
parent171a4ae26d14ae308729cf0c5beda396ea46b3af
net/ice/base: protect list add with lock

Function ice_add_rule_internal needs to call ice_create_pkt_fwd_rule
with lock held because it uses the LIST_ADD to modify the filter
rule list. It needs to be protected when modified.

Signed-off-by: Tarun Singh <tarun.k.singh@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_switch.c