cxgb4: avoid enabling napi twice to the same queue
authorGanesh Goudar <ganeshgr@chelsio.com>
Wed, 31 May 2017 12:56:28 +0000 (18:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jun 2017 18:06:23 +0000 (14:06 -0400)
commite7519f9926f1d0d11c776eb0475eb098c7760f68
tree0b9689526922b65c31b4e05ae16d4efab4bbac1f
parent6e80ac5cc992ab6256c3dae87f7e57db15e1a58c
cxgb4: avoid enabling napi twice to the same queue

Take uld mutex to avoid race between cxgb_up() and
cxgb4_register_uld() to enable napi for the same uld
queue.

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c