diff options
author | Eric Dumazet <edumazet@google.com> | 2013-10-19 14:42:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-19 19:36:19 -0400 |
commit | 117401ee1df6517203454637fbc3e7e660ce45f6 (patch) | |
tree | f56596d0aa56f97a2a54cd18749805ae2c4becc8 | |
parent | cb32f511a70be8967ac9025cf49c44324ced9a39 (diff) |
bnx2x: add TSO support for IPIP
bnx2x driver already handles TSO for GRE, current code
is the same for IPIP.
Performance results : (Note we are now limited by receiver,
as it does not support GRO for IPIP yet)
Before patch :
lpq83:~# ./netperf -H 7.7.9.84 -Cc
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 7.7.9.84 () port 0 AF_INET
Recv Send Send Utilization Service Demand
Socket Socket Message Elapsed Send Recv Send Recv
Size Size Size Time Throughput local remote local remote
bytes bytes bytes secs. 10^6bits/s % S % S us/KB us/KB
87380 16384 16384 10.00 7710.19 4.52 6.62 1.152 1.687
After patch :
lpq83:~# ./netperf -H 7.7.9.84 -Cc
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 7.7.9.84 () port 0 AF_INET
Recv Send Send Utilization Service Demand
Socket Socket Message Elapsed Send Recv Send Recv
Size Size Size Time Throughput local remote local remote
bytes bytes bytes secs. 10^6bits/s % S % S us/KB us/KB
87380 16384 16384 10.00 8532.40 2.55 7.73 0.588 1.781
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 8fd343201576..6e5b35ff7af4 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |||
@@ -12260,10 +12260,12 @@ static int bnx2x_init_dev(struct bnx2x *bp, struct pci_dev *pdev, | |||
12260 | NETIF_F_RXCSUM | NETIF_F_LRO | NETIF_F_GRO | | 12260 | NETIF_F_RXCSUM | NETIF_F_LRO | NETIF_F_GRO | |
12261 | NETIF_F_RXHASH | NETIF_F_HW_VLAN_CTAG_TX; | 12261 | NETIF_F_RXHASH | NETIF_F_HW_VLAN_CTAG_TX; |
12262 | if (!CHIP_IS_E1x(bp)) { | 12262 | if (!CHIP_IS_E1x(bp)) { |
12263 | dev->hw_features |= NETIF_F_GSO_GRE | NETIF_F_GSO_UDP_TUNNEL; | 12263 | dev->hw_features |= NETIF_F_GSO_GRE | NETIF_F_GSO_UDP_TUNNEL | |
12264 | NETIF_F_GSO_IPIP; | ||
12264 | dev->hw_enc_features = | 12265 | dev->hw_enc_features = |
12265 | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_SG | | 12266 | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_SG | |
12266 | NETIF_F_TSO | NETIF_F_TSO_ECN | NETIF_F_TSO6 | | 12267 | NETIF_F_TSO | NETIF_F_TSO_ECN | NETIF_F_TSO6 | |
12268 | NETIF_F_GSO_IPIP | | ||
12267 | NETIF_F_GSO_GRE | NETIF_F_GSO_UDP_TUNNEL; | 12269 | NETIF_F_GSO_GRE | NETIF_F_GSO_UDP_TUNNEL; |
12268 | } | 12270 | } |
12269 | 12271 | ||