net/bnxt: synchronize between flow related functions
authorVenkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Wed, 2 Oct 2019 23:25:57 +0000 (16:25 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:31 +0000 (12:14 +0200)
commit1cb3d39a48f76fde859ddaa3a8f3bd32628800f2
tree9d88aa71e410959c3ddfde19859d6522e2cf801a
parentb7e01f386059b8c7f432e9a70040ac4fbbdb3f78
net/bnxt: synchronize between flow related functions

Currently, there are four flow related functions, namely
bnxt_flow_create, bnxt_flow_destroy, bnxt_flow_validate,
bnxt_flow_flush. All these functions are not multi-thread safe.

This patch fixes it by synchronizing these functions with a lock.

Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_flow.c