diff options
author | Eric Dumazet <edumazet@google.com> | 2013-10-20 23:47:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-21 18:49:39 -0400 |
commit | 61c1db7fae21ed33c614356a43bf6580c5e53118 (patch) | |
tree | 74e9756895dcf0006f57791684f6435d29c226ab /include/linux/netdev_features.h | |
parent | d3e5e0062de5f2c6444455b5708a62a50c93a50c (diff) |
ipv6: sit: add GSO/TSO support
Now ipv6_gso_segment() is stackable, its relatively easy to
implement GSO/TSO support for SIT tunnels
Performance results, when segmentation is done after tunnel
device (as no NIC is yet enabled for TSO SIT support) :
Before patch :
lpq84:~# ./netperf -H 2002:af6:1153:: -Cc
MIGRATED TCP STREAM TEST from ::0 (::) port 0 AF_INET6 to 2002:af6:1153:: () port 0 AF_INET6
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 3168.31 4.81 4.64 2.988 2.877
After patch :
lpq84:~# ./netperf -H 2002:af6:1153:: -Cc
MIGRATED TCP STREAM TEST from ::0 (::) port 0 AF_INET6 to 2002:af6:1153:: () port 0 AF_INET6
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 5525.00 7.76 5.17 2.763 1.840
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdev_features.h')
-rw-r--r-- | include/linux/netdev_features.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h index 8dad68cede1c..b05a4b501ab5 100644 --- a/include/linux/netdev_features.h +++ b/include/linux/netdev_features.h | |||
@@ -43,6 +43,7 @@ enum { | |||
43 | NETIF_F_FSO_BIT, /* ... FCoE segmentation */ | 43 | NETIF_F_FSO_BIT, /* ... FCoE segmentation */ |
44 | NETIF_F_GSO_GRE_BIT, /* ... GRE with TSO */ | 44 | NETIF_F_GSO_GRE_BIT, /* ... GRE with TSO */ |
45 | NETIF_F_GSO_IPIP_BIT, /* ... IPIP tunnel with TSO */ | 45 | NETIF_F_GSO_IPIP_BIT, /* ... IPIP tunnel with TSO */ |
46 | NETIF_F_GSO_SIT_BIT, /* ... SIT tunnel with TSO */ | ||
46 | NETIF_F_GSO_UDP_TUNNEL_BIT, /* ... UDP TUNNEL with TSO */ | 47 | NETIF_F_GSO_UDP_TUNNEL_BIT, /* ... UDP TUNNEL with TSO */ |
47 | NETIF_F_GSO_MPLS_BIT, /* ... MPLS segmentation */ | 48 | NETIF_F_GSO_MPLS_BIT, /* ... MPLS segmentation */ |
48 | /**/NETIF_F_GSO_LAST = /* last bit, see GSO_MASK */ | 49 | /**/NETIF_F_GSO_LAST = /* last bit, see GSO_MASK */ |
@@ -109,6 +110,7 @@ enum { | |||
109 | #define NETIF_F_RXALL __NETIF_F(RXALL) | 110 | #define NETIF_F_RXALL __NETIF_F(RXALL) |
110 | #define NETIF_F_GSO_GRE __NETIF_F(GSO_GRE) | 111 | #define NETIF_F_GSO_GRE __NETIF_F(GSO_GRE) |
111 | #define NETIF_F_GSO_IPIP __NETIF_F(GSO_IPIP) | 112 | #define NETIF_F_GSO_IPIP __NETIF_F(GSO_IPIP) |
113 | #define NETIF_F_GSO_SIT __NETIF_F(GSO_SIT) | ||
112 | #define NETIF_F_GSO_UDP_TUNNEL __NETIF_F(GSO_UDP_TUNNEL) | 114 | #define NETIF_F_GSO_UDP_TUNNEL __NETIF_F(GSO_UDP_TUNNEL) |
113 | #define NETIF_F_GSO_MPLS __NETIF_F(GSO_MPLS) | 115 | #define NETIF_F_GSO_MPLS __NETIF_F(GSO_MPLS) |
114 | #define NETIF_F_HW_VLAN_STAG_FILTER __NETIF_F(HW_VLAN_STAG_FILTER) | 116 | #define NETIF_F_HW_VLAN_STAG_FILTER __NETIF_F(HW_VLAN_STAG_FILTER) |