]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
be2net: make SET_LOOPBACK_MODE cmd asynchrounous
authorSuresh Reddy <Suresh.Reddy@emulex.com>
Fri, 10 Jul 2015 09:32:50 +0000 (05:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jul 2015 06:24:30 +0000 (23:24 -0700)
commit9c8559750cd7b7936dd38810fc2110fc91d7d527
tree6838d849e43444c5beb70b2e4b1de0d690926656
parent8af65c2f4deeb02a128c5cf29fa351b70bf16424
be2net: make SET_LOOPBACK_MODE cmd asynchrounous

The SET_LOOPBACK_MODE command is always issued from ethtool only in a
process context. So, while waiting for the cmd to complete, the driver
can sleep instead of holding spin_lock_bh() on the mcc_lock. This is done
by calling be_mcc_notify() instead of be_mcc_notify_wait() (that returns
only after the cmd completes while the MCCQ is locked).

Signed-off-by: Suresh Reddy <suresh.reddy@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_ethtool.c