netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 1/3 v2] bnx2: Add GRO support.
@ 2010-05-06 18:58 Michael Chan
  2010-05-06 18:58 ` [PATCH -next 2/3 v2] bnx2: Add prefetches to rx path Michael Chan
  2010-05-07  5:17 ` [PATCH -next 1/3 v2] bnx2: Add GRO support David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Chan @ 2010-05-06 18:58 UTC (permalink / raw)
  To: davem; +Cc: netdev

And turn on NETIF_F_GRO by default [requested by DaveM].

Signed-off-by: Michael Chan <mchan@broadcom.com>
---
 drivers/net/bnx2.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index ab26bbc..320526b 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -3207,10 +3207,10 @@ bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget)
 
 #ifdef BCM_VLAN
 		if (hw_vlan)
-			vlan_hwaccel_receive_skb(skb, bp->vlgrp, vtag);
+			vlan_gro_receive(&bnapi->napi, bp->vlgrp, vtag, skb);
 		else
 #endif
-			netif_receive_skb(skb);
+			napi_gro_receive(&bnapi->napi, skb);
 
 		rx_pkt++;
 
@@ -8296,7 +8296,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	memcpy(dev->dev_addr, bp->mac_addr, 6);
 	memcpy(dev->perm_addr, bp->mac_addr, 6);
 
-	dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG;
+	dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_GRO;
 	vlan_features_add(dev, NETIF_F_IP_CSUM | NETIF_F_SG);
 	if (CHIP_NUM(bp) == CHIP_NUM_5709) {
 		dev->features |= NETIF_F_IPV6_CSUM;
-- 
1.6.4.GIT



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-07  5:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 18:58 [PATCH -next 1/3 v2] bnx2: Add GRO support Michael Chan
2010-05-06 18:58 ` [PATCH -next 2/3 v2] bnx2: Add prefetches to rx path Michael Chan
2010-05-07  5:18   ` David Miller
2010-05-07  5:17 ` [PATCH -next 1/3 v2] bnx2: Add GRO support David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).