]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
qlcnic: use standard NAPI weights
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 4 Sep 2013 13:03:05 +0000 (15:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2013 16:44:31 +0000 (12:44 -0400)
commitdf95fc44c09f4c33e1d453674487a78f2779ba23
tree533c6bfdd5928ad095aecf993e3b7419a0703dbf
parentb55b76b22144ab97cefcb3862bab61f088adf411
qlcnic: use standard NAPI weights

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.

qlcnic requests the weight as large as 256 for some of its rings, and
smaller values for other rings. For instance in qlcnic_82xx_napi_add()
I think the intention was to give the tx+rx ring a bigger weight than
to rx-only rings, but it's actually doing the opposite. So I'm assuming
the weights do not really matter much.

Just use the standard NAPI weights for all rings.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c