Skip to content

Commit

Permalink
tg3: Add GRO support.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 29, 2009
1 parent 4099e01 commit 1383bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -4392,7 +4392,7 @@ static void tg3_recycle_rx(struct tg3 *tp, u32 opaque_key,
#if TG3_VLAN_TAG_USED
static int tg3_vlan_rx(struct tg3 *tp, struct sk_buff *skb, u16 vlan_tag)
{
return vlan_hwaccel_receive_skb(skb, tp->vlgrp, vlan_tag);
return vlan_gro_receive(&tp->napi, tp->vlgrp, vlan_tag, skb);
}
#endif

Expand Down Expand Up @@ -4539,7 +4539,7 @@ static int tg3_rx(struct tg3 *tp, int budget)
desc->err_vlan & RXD_VLAN_MASK);
} else
#endif
netif_receive_skb(skb);
napi_gro_receive(&tp->napi, skb);

received++;
budget--;
Expand Down

0 comments on commit 1383bdb

Please sign in to comment.