summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrenohl@br.ibm.com <brenohl@br.ibm.com>2012-07-27 08:54:52 +0000
committerDavid S. Miller <davem@davemloft.net>2012-07-29 23:18:30 -0700
commit1a0150a93c496986297fc08304ac564213c08942 (patch)
tree6034d345e12d1a67c11e77b0a52c95f828e93e54
parentf7da9cdf45cbbad5029d4858dcbc0134e06084ed (diff)
downloadop-kernel-dev-1a0150a93c496986297fc08304ac564213c08942.zip
op-kernel-dev-1a0150a93c496986297fc08304ac564213c08942.tar.gz
qlge: Add offload features to vlan interfaces
This patch fills the net_device vlan_features with the proper hardware features, thus, improving the vlan interface performance. With the patch applied, I can see around 148% improvement on a TCP_STREAM test, from 3.5 Gb/s to 8.7 Gb/s. On TCP_RR, I see a 11% improvement, from 18k to 20. The CPU utilization is almost the same on both cases, from the comparison above. Signed-off-by: Breno Leitao <brenohl@br.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/qlogic/qlge/qlge_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c
index 3769f57..b53a3b6 100644
--- a/drivers/net/ethernet/qlogic/qlge/qlge_main.c
+++ b/drivers/net/ethernet/qlogic/qlge/qlge_main.c
@@ -4682,6 +4682,7 @@ static int __devinit qlge_probe(struct pci_dev *pdev,
NETIF_F_HW_VLAN_TX | NETIF_F_RXCSUM;
ndev->features = ndev->hw_features |
NETIF_F_HW_VLAN_RX | NETIF_F_HW_VLAN_FILTER;
+ ndev->vlan_features = ndev->hw_features;
if (test_bit(QL_DMA64, &qdev->flags))
ndev->features |= NETIF_F_HIGHDMA;
OpenPOWER on IntegriCloud