Commit 8ded532c authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

r8152: switch to netif_napi_add_weight()

r8152 uses a custom napi weight, switch to the new
API for setting custom weight.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b707b89f
...@@ -9732,10 +9732,8 @@ static int rtl8152_probe(struct usb_interface *intf, ...@@ -9732,10 +9732,8 @@ static int rtl8152_probe(struct usb_interface *intf,
usb_set_intfdata(intf, tp); usb_set_intfdata(intf, tp);
if (tp->support_2500full) netif_napi_add_weight(netdev, &tp->napi, r8152_poll,
netif_napi_add(netdev, &tp->napi, r8152_poll, 256); tp->support_2500full ? 256 : 64);
else
netif_napi_add(netdev, &tp->napi, r8152_poll, 64);
ret = register_netdev(netdev); ret = register_netdev(netdev);
if (ret != 0) { if (ret != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment