Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214347
b: refs/heads/master
c: 2edae08
h: refs/heads/master
i:
  214345: 51cf8a0
  214343: 8cc4100
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 7, 2010
1 parent 3de634b commit 3e78c14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c936335e7ac24d1751543e2007a89e3eb649cc2a
refs/heads/master: 2edae08e5b75269855fef3c74fe4292c066e7c33
10 changes: 8 additions & 2 deletions trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,12 @@ static int rtl8169_rx_vlan_skb(struct rtl8169_private *tp, struct RxDesc *desc,
int ret;

if (vlgrp && (opts2 & RxVlanTag)) {
__vlan_hwaccel_rx(skb, vlgrp, swab16(opts2 & 0xffff), polling);
u16 vtag = swab16(opts2 & 0xffff);

if (likely(polling))
vlan_gro_receive(&tp->napi, vlgrp, vtag, skb);
else
__vlan_hwaccel_rx(skb, vlgrp, vtag, polling);
ret = 0;
} else
ret = -1;
Expand Down Expand Up @@ -3186,6 +3191,7 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
#ifdef CONFIG_R8169_VLAN
dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
#endif
dev->features |= NETIF_F_GRO;

tp->intr_mask = 0xffff;
tp->align = cfg->align;
Expand Down Expand Up @@ -4561,7 +4567,7 @@ static int rtl8169_rx_interrupt(struct net_device *dev,

if (rtl8169_rx_vlan_skb(tp, desc, skb, polling) < 0) {
if (likely(polling))
netif_receive_skb(skb);
napi_gro_receive(&tp->napi, skb);
else
netif_rx(skb);
}
Expand Down

0 comments on commit 3e78c14

Please sign in to comment.