]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: move skb_mark_napi_id() into core networking stack
authorEric Dumazet <edumazet@google.com>
Wed, 18 Nov 2015 14:30:59 +0000 (06:30 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 02:28:33 +0000 (19:28 -0700)
We would like to automatically provide busy polling support
to all NAPI drivers, without them having to implement anything.

skb_mark_napi_id() can be called from napi_gro_receive() and
napi_get_frags().

Few drivers are still calling skb_mark_napi_id() because
they use netif_receive_skb(). They should eventually call
napi_gro_receive() instead. I will leave this to drivers
maintainers.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23718192
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

index 83ff1afb375c50174fea07bb64f42115324f4dc9..80d23226d9e41a121bf181e275b33146014d4526 100644 (file)
@@ -1094,8 +1094,6 @@ reuse_rx:
                        __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q),
                                               le16_to_cpu(cqe_fp->vlan_tag));
 
-               skb_mark_napi_id(skb, &fp->napi);
-
                napi_gro_receive(&fp->napi, skb);
 next_rx:
                rx_buf->data = NULL;