diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2013-08-23 17:41:19 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-27 22:59:27 +0400 |
commit | ae24f261e11ec30d343c7c5ee805ff29782f726b (patch) | |
tree | 283ecc6e7e04f49144de3c15aa87165b2ca6c525 /drivers/net/ethernet/toshiba/ps3_gelic_net.c | |
parent | 1e4a5282b4791fb9ba68478ecddae9642f9cfefb (diff) | |
download | linux-ae24f261e11ec30d343c7c5ee805ff29782f726b.tar.xz |
ps3_gelic: lower NAPI weight
Since commit 82dc3c63 ("net: introduce NAPI_POLL_WEIGHT")
netif_napi_add() produces an error message if a NAPI poll weight
greater than 64 is requested.
GELIC_NET_NAPI_WEIGHT is defined to GELIC_NET_RX_DESCRIPTORS,
which is 128.
Use the standard NAPI weight.
v2: proper reference to the related commit
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/toshiba/ps3_gelic_net.c')
-rw-r--r-- | drivers/net/ethernet/toshiba/ps3_gelic_net.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/toshiba/ps3_gelic_net.c b/drivers/net/ethernet/toshiba/ps3_gelic_net.c index ad32af67e618..9c805e0c0cae 100644 --- a/drivers/net/ethernet/toshiba/ps3_gelic_net.c +++ b/drivers/net/ethernet/toshiba/ps3_gelic_net.c @@ -1466,8 +1466,7 @@ static void gelic_ether_setup_netdev_ops(struct net_device *netdev, { netdev->watchdog_timeo = GELIC_NET_WATCHDOG_TIMEOUT; /* NAPI */ - netif_napi_add(netdev, napi, - gelic_net_poll, GELIC_NET_NAPI_WEIGHT); + netif_napi_add(netdev, napi, gelic_net_poll, NAPI_POLL_WEIGHT); netdev->ethtool_ops = &gelic_ether_ethtool_ops; netdev->netdev_ops = &gelic_netdevice_ops; } |