diff options
author | Ivan Vecera <ivecera@redhat.com> | 2011-12-07 20:31:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-08 19:51:30 -0500 |
commit | 6626873980475f303367f7b709f4703b571cf854 (patch) | |
tree | b9d94e49b5101c24854ffed4090407a844e297a6 | |
parent | 26cf820d49ee23472191824000b3234c4bffb1a5 (diff) |
be2net: netpoll support
Add missing netpoll support.
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 7236280c1af0..3854fb0610ba 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c | |||
@@ -2666,6 +2666,19 @@ err: | |||
2666 | return status; | 2666 | return status; |
2667 | } | 2667 | } |
2668 | 2668 | ||
2669 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
2670 | static void be_netpoll(struct net_device *netdev) | ||
2671 | { | ||
2672 | struct be_adapter *adapter = netdev_priv(netdev); | ||
2673 | struct be_rx_obj *rxo; | ||
2674 | int i; | ||
2675 | |||
2676 | event_handle(adapter, &adapter->tx_eq, false); | ||
2677 | for_all_rx_queues(adapter, rxo, i) | ||
2678 | event_handle(adapter, &rxo->rx_eq, true); | ||
2679 | } | ||
2680 | #endif | ||
2681 | |||
2669 | #define FW_FILE_HDR_SIGN "ServerEngines Corp. " | 2682 | #define FW_FILE_HDR_SIGN "ServerEngines Corp. " |
2670 | static bool be_flash_redboot(struct be_adapter *adapter, | 2683 | static bool be_flash_redboot(struct be_adapter *adapter, |
2671 | const u8 *p, u32 img_start, int image_size, | 2684 | const u8 *p, u32 img_start, int image_size, |
@@ -3014,7 +3027,10 @@ static struct net_device_ops be_netdev_ops = { | |||
3014 | .ndo_set_vf_mac = be_set_vf_mac, | 3027 | .ndo_set_vf_mac = be_set_vf_mac, |
3015 | .ndo_set_vf_vlan = be_set_vf_vlan, | 3028 | .ndo_set_vf_vlan = be_set_vf_vlan, |
3016 | .ndo_set_vf_tx_rate = be_set_vf_tx_rate, | 3029 | .ndo_set_vf_tx_rate = be_set_vf_tx_rate, |
3017 | .ndo_get_vf_config = be_get_vf_config | 3030 | .ndo_get_vf_config = be_get_vf_config, |
3031 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
3032 | .ndo_poll_controller = be_netpoll, | ||
3033 | #endif | ||
3018 | }; | 3034 | }; |
3019 | 3035 | ||
3020 | static void be_netdev_init(struct net_device *netdev) | 3036 | static void be_netdev_init(struct net_device *netdev) |