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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 11:16:19 +0000 (13:16 +0200)
commit03994b4b858f8d9d0a683467f1e5bda9a3cff228
tree69d7c3c65c8dab420e87cdb8ba3d17e0ce8ed558
parent491809d0f8d82f5c5d1b4911b1ae1f7863357784
cxgb4: avoid enabling napi twice to the same queue

[ Upstream commit e7519f9926f1d0d11c776eb0475eb098c7760f68 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c