linux/drivers/net/ethernet/emulex/benet
Sathya Perla b71724147e be2net: replace polling with sleeping in the FW completion path
The ndo_set_rx_mode() and ndo_add/del_vxlan_port() calls may be called with
BHs disabled. The driver currently issues the required cmds to the FW in
these contexts and polls on completions from the FW, while BHs remain
disabled.  This can cause either packet loss or packet reception to be
delayed on that CPU.

This patch defers processing of the above cmds to a separate workqueue.
With this change, FW cmds are now issued only in process context.
Now that the FW cmds are issued only in process context, they can sleep
waiting for a completion instead of polling. All the spin_lock_bh(mcc_lock)
calls are now replaced with mutex calls.

Also a new rx_filter_lock is now needed to protect the RX filtering fields
like vids[] between be_vlan_add/rem_vid() and __be_set_rx_mode() contexts.

Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-08 15:38:27 -07:00
..
be_cmds.c be2net: replace polling with sleeping in the FW completion path 2016-08-08 15:38:27 -07:00
be_cmds.h be2net: Change copyright markings in source files 2016-06-27 04:06:24 -04:00
be_ethtool.c be2net: Change copyright markings in source files 2016-06-27 04:06:24 -04:00
be_hw.h be2net: update copyright year to 2015 2015-05-09 16:27:04 -04:00
be_main.c be2net: replace polling with sleeping in the FW completion path 2016-08-08 15:38:27 -07:00
be_roce.c be2net: Change copyright markings in source files 2016-06-27 04:06:24 -04:00
be_roce.h be2net: Change copyright markings in source files 2016-06-27 04:06:24 -04:00
be.h be2net: replace polling with sleeping in the FW completion path 2016-08-08 15:38:27 -07:00
Kconfig benet: Replace ndo_add/del_vxlan_port with ndo_add/del_udp_enc_port 2016-06-17 20:23:30 -07:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00