Message ID | 1377103822-1752-2-git-send-email-mschmidt@redhat.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 49eb511..0eb34a9 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c @@ -1679,7 +1679,7 @@ struct net_device *nes_netdev_init(struct nes_device *nesdev, netdev->type = ARPHRD_ETHER; netdev->netdev_ops = &nes_netdev_ops; netdev->ethtool_ops = &nes_ethtool_ops; - netif_napi_add(netdev, &nesvnic->napi, nes_netdev_poll, 128); + netif_napi_add(netdev, &nesvnic->napi, nes_netdev_poll, NAPI_POLL_WEIGHT); nes_debug(NES_DBG_INIT, "Enabling VLAN Insert/Delete.\n"); /* Fill in the port structure */
Since commit 82dc3c63 netif_napi_add() produces an error message if a NAPI poll weight greater than 64 is requested. Use the standard NAPI weight. Signed-off-by: Michal Schmidt <mschmidt@redhat.com> CC: Faisal Latif <faisal.latif@intel.com> CC: Roland Dreier <roland@kernel.org> CC: Sean Hefty <sean.hefty@intel.com> CC: Hal Rosenstock <hal.rosenstock@gmail.com> --- drivers/infiniband/hw/nes/nes_nic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)