Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131964
b: refs/heads/master
c: 4ead443
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Mar 1, 2009
1 parent f1c5bc3 commit af23ddf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18963caaf55240d6a0491bdb27b7fef2882ffb15
refs/heads/master: 4ead443163b798661c2a2ede5e512e116a9e41e7
10 changes: 10 additions & 0 deletions trunk/net/8021q/vlan_core.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/if_vlan.h>
#include <linux/netpoll.h>
#include "vlan.h"

/* VLAN rx hw acceleration helper. This acts like netif_{rx,receive_skb}(). */
int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,
u16 vlan_tci, int polling)
{
if (netpoll_rx(skb))
return NET_RX_DROP;

if (skb_bond_should_drop(skb))
goto drop;

Expand Down Expand Up @@ -100,6 +104,9 @@ int vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp,
{
int err = NET_RX_SUCCESS;

if (netpoll_receive_skb(skb))
return NET_RX_DROP;

switch (vlan_gro_common(napi, grp, vlan_tci, skb)) {
case -1:
return netif_receive_skb(skb);
Expand All @@ -126,6 +133,9 @@ int vlan_gro_frags(struct napi_struct *napi, struct vlan_group *grp,
if (!skb)
goto out;

if (netpoll_receive_skb(skb))
goto out;

err = NET_RX_SUCCESS;

switch (vlan_gro_common(napi, grp, vlan_tci, skb)) {
Expand Down
6 changes: 6 additions & 0 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2488,6 +2488,9 @@ static int __napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb)

int napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb)
{
if (netpoll_receive_skb(skb))
return NET_RX_DROP;

switch (__napi_gro_receive(napi, skb)) {
case -1:
return netif_receive_skb(skb);
Expand Down Expand Up @@ -2558,6 +2561,9 @@ int napi_gro_frags(struct napi_struct *napi, struct napi_gro_fraginfo *info)
if (!skb)
goto out;

if (netpoll_receive_skb(skb))
goto out;

err = NET_RX_SUCCESS;

switch (__napi_gro_receive(napi, skb)) {
Expand Down

0 comments on commit af23ddf

Please sign in to comment.