Follow-ups for GUEoIPv6 patches
Subsystems (4)
cover Follow-ups for GUEoIPv6 patches
This patch series is meant to be applied after:
[PATCH v7 net-next 00/16] ipv6: Enable GUEoIPv6 and more fixes for v6 tunneling
The first patch addresses an issue we already resolved in the GREv4 and is now present in GREv6 with the introduction of FOU/GUE for IPv6 based GRE tunnels.
The second patch goes through and enables IPv6 tunnel offloads for the Intel NICs that already support the IPv4 based IP-in-IP tunnel offloads. I have only done a bit of touch testing but have seen ~20 Gb/s over an i40e interface using a v4-in-v6 tunnel, and I have verified IPv6 GRE is still passing traffic at around the same rate. I plan to do further testing but with these patches present it should enable a wider audience to be able to test the new features introduced in Tom's patchset with hardware offloads.
---
Alexander Duyck (2):
ip6_gre: Do not allow segmentation offloads GRE_CSUM is enabled with FOU/GUE
intel: Add support for IPv6 IP-in-IP offload
drivers/net/ethernet/intel/i40e/i40e_main.c | 1 + drivers/net/ethernet/intel/i40e/i40e_txrx.c | 1 + drivers/net/ethernet/intel/i40evf/i40e_txrx.c | 1 + drivers/net/ethernet/intel/i40evf/i40evf_main.c | 1 + drivers/net/ethernet/intel/igb/igb_main.c | 1 + drivers/net/ethernet/intel/igbvf/netdev.c | 1 + drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 1 + drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 + net/ipv6/ip6_gre.c | 12 ++++++++---- 9 files changed, 16 insertions(+), 4 deletions(-)
--
PATCH 1/2 ip6_gre: Do not allow segmentation offloads GRE_CSUM is enabled with FOU/GUE
This patch addresses the same issue we had for IPv4 where enabling GRE with an inner checksum cannot be supported with FOU/GUE due to the fact that they will jump past the GRE header at it is treated like a tunnel header.
--- net/ipv6/ip6_gre.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
net/ipv6/ip6_gre.c +8 -4
@@ -1355,11 +1355,15 @@ static int ip6gre_newlink(struct net *src_net, struct net_device *dev, dev->hw_features |=GRE6_FEATURES ;if (!(nt->parms.o_flags &TUNNEL_SEQ )) { -/* TCP segmentation offload is not supported when we -* generate output sequences. +/* TCP offload with GRE SEQ is not supported, nor +* can we support 2 levels of outer headers requiring +* an update. */ - dev->features |=NETIF_F_GSO_SOFTWARE ; - dev->hw_features |=NETIF_F_GSO_SOFTWARE ; +if (!(nt->parms.o_flags &TUNNEL_CSUM ) || + (nt->encap.type ==TUNNEL_ENCAP_NONE )) { + dev->features |=NETIF_F_GSO_SOFTWARE ; + dev->hw_features |=NETIF_F_GSO_SOFTWARE ; + }/* Can use a lockless transmit, unless we generate * output sequences
PATCH 2/2 intel: Add support for IPv6 IP-in-IP offload
In reply to Alexander DuyckThis patch adds support for offloading IPXIP6 type packets that represent either IPv4 or IPv6 encapsulated inside of an IPv6 outer IP header. In addition with this change we should also be able to support FOU encapsulated traffic with outer IPv6 headers.
--- drivers/net/ethernet/intel/i40e/i40e_main.c | 1 + drivers/net/ethernet/intel/i40e/i40e_txrx.c | 1 + drivers/net/ethernet/intel/i40evf/i40e_txrx.c | 1 + drivers/net/ethernet/intel/i40evf/i40evf_main.c | 1 + drivers/net/ethernet/intel/igb/igb_main.c | 1 + drivers/net/ethernet/intel/igbvf/netdev.c | 1 + drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 1 + drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 + 8 files changed, 8 insertions(+)
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -0
@@ -9113,6 +9113,7 @@ static int i40e_config_netdev(struct i40e_vsi *vsi)NETIF_F_GSO_GRE |NETIF_F_GSO_GRE_CSUM |NETIF_F_GSO_IPXIP4 | +NETIF_F_GSO_IPXIP6 |NETIF_F_GSO_UDP_TUNNEL |NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_GSO_PARTIAL |
drivers/net/ethernet/intel/i40e/i40e_txrx.c +1 -0
@@ -2285,6 +2285,7 @@ static int i40e_tso(struct sk_buff *skb, u8 *hdr_len, u64 *cd_type_cmd_tso_mss)if (skb_shinfo (skb)->gso_type & (SKB_GSO_GRE |SKB_GSO_GRE_CSUM |SKB_GSO_IPXIP4 | +SKB_GSO_IPXIP6 |SKB_GSO_UDP_TUNNEL |SKB_GSO_UDP_TUNNEL_CSUM )) { if (!(skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) &&
drivers/net/ethernet/intel/i40evf/i40e_txrx.c +1 -0
@@ -1560,6 +1560,7 @@ static int i40e_tso(struct sk_buff *skb, u8 *hdr_len, u64 *cd_type_cmd_tso_mss)if (skb_shinfo (skb)->gso_type & (SKB_GSO_GRE |SKB_GSO_GRE_CSUM |SKB_GSO_IPXIP4 | +SKB_GSO_IPXIP6 |SKB_GSO_UDP_TUNNEL |SKB_GSO_UDP_TUNNEL_CSUM )) { if (!(skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) &&
drivers/net/ethernet/intel/i40evf/i40evf_main.c +1 -0
@@ -2231,6 +2231,7 @@ int i40evf_process_config(struct i40evf_adapter *adapter)NETIF_F_GSO_GRE |NETIF_F_GSO_GRE_CSUM |NETIF_F_GSO_IPXIP4 | +NETIF_F_GSO_IPXIP6 |NETIF_F_GSO_UDP_TUNNEL |NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_GSO_PARTIAL |
drivers/net/ethernet/intel/igb/igb_main.c +1 -0
@@ -2419,6 +2419,7 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)#define IGB_GSO_PARTIAL_FEATURES (NETIF_F_GSO_GRE | \ NETIF_F_GSO_GRE_CSUM | \ NETIF_F_GSO_IPXIP4 | \ + NETIF_F_GSO_IPXIP6 | \ NETIF_F_GSO_UDP_TUNNEL | \ NETIF_F_GSO_UDP_TUNNEL_CSUM)
drivers/net/ethernet/intel/igbvf/netdev.c +1 -0
@@ -2764,6 +2764,7 @@ static int igbvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)#define IGBVF_GSO_PARTIAL_FEATURES (NETIF_F_GSO_GRE | \ NETIF_F_GSO_GRE_CSUM | \ NETIF_F_GSO_IPXIP4 | \ + NETIF_F_GSO_IPXIP6 | \ NETIF_F_GSO_UDP_TUNNEL | \ NETIF_F_GSO_UDP_TUNNEL_CSUM)
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +1 -0
@@ -9544,6 +9544,7 @@ skip_sriov:#define IXGBE_GSO_PARTIAL_FEATURES (NETIF_F_GSO_GRE | \ NETIF_F_GSO_GRE_CSUM | \ NETIF_F_GSO_IPXIP4 | \ + NETIF_F_GSO_IPXIP6 | \ NETIF_F_GSO_UDP_TUNNEL | \ NETIF_F_GSO_UDP_TUNNEL_CSUM)
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +1 -0
@@ -4063,6 +4063,7 @@ static int ixgbevf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)#define IXGBEVF_GSO_PARTIAL_FEATURES (NETIF_F_GSO_GRE | \ NETIF_F_GSO_GRE_CSUM | \ NETIF_F_GSO_IPXIP4 | \ + NETIF_F_GSO_IPXIP6 | \ NETIF_F_GSO_UDP_TUNNEL | \ NETIF_F_GSO_UDP_TUNNEL_CSUM)
Quoted 22 lines · Alexander Duyck
This patch series is meant to be applied after:
[PATCH v7 net-next 00/16] ipv6: Enable GUEoIPv6 and more fixes for v6 tunnelingThe first patch addresses an issue we already resolved in the GREv4 and is
now present in GREv6 with the introduction of FOU/GUE for IPv6 based GRE tunnels.The second patch goes through and enables IPv6 tunnel offloads for the Intel
NICs that already support the IPv4 based IP-in-IP tunnel offloads.? I have
only done a bit of touch testing but have seen ~20 Gb/s over an i40e interface using a v4-in-v6 tunnel, and I have verified IPv6 GRE is still passing traffic at around the same rate.? I plan to do further testing but
with these patches present it should enable a wider audience to be able to
test the new features introduced in Tom's patchset with hardware offloads.
Quoted 6 lines
---
Alexander Duyck (2):
?????ip6_gre: Do not allow segmentation offloadsGRE_CSUMis enabled with FOU/GUE
????? intel: Add support for IPv6 IP-in-IP offload
Dave, I have this series added to my queue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20160518/c432c17a/attachment-0001.asc>
Quoted 23 lines · Jeff Kirsher
Quoted 22 lines · Alexander Duyck
This patch series is meant to be applied after:
[PATCH v7 net-next 00/16] ipv6: Enable GUEoIPv6 and more fixes for v6 tunnelingThe first patch addresses an issue we already resolved in the GREv4 and is
now present in GREv6 with the introduction of FOU/GUE for IPv6 based GRE tunnels.The second patch goes through and enables IPv6 tunnel offloads for the Intel
NICs that already support the IPv4 based IP-in-IP tunnel offloads. I have
only done a bit of touch testing but have seen ~20 Gb/s over an i40e interface using a v4-in-v6 tunnel, and I have verified IPv6 GRE is still passing traffic at around the same rate. I plan to do further testing but
with these patches present it should enable a wider audience to be able to
test the new features introduced in Tom's patchset with hardware offloads.
Quoted 8 lines
Quoted 6 lines
---
Alexander Duyck (2):
ip6_gre: Do not allow segmentation offloadsGRE_CSUMis enabled
with FOU/GUE
intel: Add support for IPv6 IP-in-IP offloadDave, I have this series added to my queue.
Jeff,
If Tom's patches make it in for 4.7, then I would like to see if we could push these patches for "net" since essentially the first patch is a fix for Tom's earlier patches and the second is needed in order to really be able to test Tom's patches with a driver that actually supports a hardware offload.
Thanks.
- Alex
Quoted 38 lines · Alexander Duyck
Quoted 6 lines · Jeff Kirsher
Quoted 5 lines · Alexander Duyck
This patch series is meant to be applied after:
[PATCH v7 net-next 00/16] ipv6: Enable GUEoIPv6 and more fixes for v6 tunnelingThe first patch addresses an issue we already resolved in the GREv4
and
Quoted 2 lines
Quoted 2 lines
is
now present in GREv6 with the introduction of FOU/GUE for IPv6 basedGRE
Quoted 8 lines
Quoted 8 lines
tunnels.
The second patch goes through and enables IPv6 tunnel offloads for the Intel
NICs that already support the IPv4 based IP-in-IP tunnel offloads.? I have
only done a bit of touch testing but have seen ~20 Gb/s over an i40e interface using a v4-in-v6 tunnel, and I have verified IPv6 GRE isstill
Quoted 3 lines
Quoted 3 lines
passing traffic at around the same rate.? I plan to do further testing but
with these patches present it should enable a wider audience to beable
Quoted 4 lines
Quoted 4 lines
to
test the new features introduced in Tom's patchset with hardware offloads.Quoted 8 lines
Quoted 6 lines
---
Alexander Duyck (2):
??????ip6_gre: Do not allow segmentation offloadsGRE_CSUMis enabled with FOU/GUE
?????? intel: Add support for IPv6 IP-in-IP offloadDave, I have this series added to my queue.
Quoted 7 lines
Jeff,
If Tom's patches make it in for 4.7, then I would like to see if we could push these patches for "net" since essentially the first patch is a fix for Tom's earlier patches and the second is needed in order to really be able to test Tom's patches with a driver that actually supports a hardware offload.
Yeah, I was thinking that very same thing. ?I will wait to see if Dave
sucks this into 4.7 or not and plan accordingly. ?I also figured out that
your two patch series needs to have Tom's series applied before hand, so I
will be adding Tom's series to my tree just for testing purposes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20160518/2882efc7/attachment.asc>
David Miller
maintainerFrom: Jeff Kirsher <[email protected]>
Date: Wed, 18 May 2016 14:27:58 -0700
Quoted 23 lines · Alexander Duyck
Quoted 22 lines
This patch series is meant to be applied after:
[PATCH v7 net-next 00/16] ipv6: Enable GUEoIPv6 and more fixes for v6 tunnelingThe first patch addresses an issue we already resolved in the GREv4 and is
now present in GREv6 with the introduction of FOU/GUE for IPv6 based GRE tunnels.The second patch goes through and enables IPv6 tunnel offloads for the Intel
NICs that already support the IPv4 based IP-in-IP tunnel offloads.? I have
only done a bit of touch testing but have seen ~20 Gb/s over an i40e interface using a v4-in-v6 tunnel, and I have verified IPv6 GRE is still passing traffic at around the same rate.? I plan to do further testing but
with these patches present it should enable a wider audience to be able to
test the new features introduced in Tom's patchset with hardware offloads.
Quoted 8 lines
Quoted 6 lines
---
Alexander Duyck (2):
?????ip6_gre: Do not allow segmentation offloadsGRE_CSUMis enabled with FOU/GUE
????? intel: Add support for IPv6 IP-in-IP offloadDave, I have this series added to my queue.
Why would you if it depends upon Tom's series, as mentioned above, which isn't even in my tree yet?
Quoted 36 lines · David Miller
From: Jeff Kirsher <[email protected]>
Date: Wed, 18 May 2016 14:27:58 -0700Quoted 6 lines · Alexander Duyck
Quoted 5 lines
This patch series is meant to be applied after:
[PATCH v7 net-next 00/16] ipv6: Enable GUEoIPv6 and more fixes for v6 tunneling
?
The first patch addresses an issue we already resolved in the GREv4and
Quoted 2 lines
Quoted 2 lines
is
now present in GREv6 with the introduction of FOU/GUE for IPv6 basedGRE
Quoted 8 lines
Quoted 8 lines
tunnels.
?
The second patch goes through and enables IPv6 tunnel offloads for the Intel
NICs that already support the IPv4 based IP-in-IP tunnel offloads.? I have
only done a bit of touch testing but have seen ~20 Gb/s over an i40e interface using a v4-in-v6 tunnel, and I have verified IPv6 GRE isstill
Quoted 3 lines
Quoted 3 lines
passing traffic at around the same rate.? I plan to do further testing but
with these patches present it should enable a wider audience to beable
Quoted 10 lines
Quoted 10 lines
to
test the new features introduced in Tom's patchset with hardware offloads.
?
---
?
Alexander Duyck (2):
?????ip6_gre: Do not allow segmentation offloadsGRE_CSUMis enabled with FOU/GUE
????? intel: Add support for IPv6 IP-in-IP offload
Quoted 5 lines
Quoted 2 lines
?
Dave, I have this series added to my queue.Why would you if it depends upon Tom's series, as mentioned above, which isn't even in my tree yet?
I was not able to apply his patches to my dev-queue due to conflicts and
from discussion with Alex, I made the mistake in assuming the issues I saw
was because it did not have Tom's driver changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20160524/6d768bcc/attachment.asc>
Quoted 38 lines · Jeff Kirsher
Quoted 37 lines · David Miller
From: Jeff Kirsher <[email protected]>
Date: Wed, 18 May 2016 14:27:58 -0700Quoted 6 lines · Alexander Duyck
Quoted 5 lines
This patch series is meant to be applied after:
[PATCH v7 net-next 00/16] ipv6: Enable GUEoIPv6 and more fixes for v6 tunnelingThe first patch addresses an issue we already resolved in the GREv4
and
Quoted 2 lines
Quoted 2 lines
is
now present in GREv6 with the introduction of FOU/GUE for IPv6 basedGRE
Quoted 8 lines
Quoted 8 lines
tunnels.
The second patch goes through and enables IPv6 tunnel offloads for the Intel
NICs that already support the IPv4 based IP-in-IP tunnel offloads. I have
only done a bit of touch testing but have seen ~20 Gb/s over an i40e interface using a v4-in-v6 tunnel, and I have verified IPv6 GRE isstill
Quoted 3 lines
Quoted 3 lines
passing traffic at around the same rate. I plan to do further testing but
with these patches present it should enable a wider audience to beable
Quoted 11 lines
Quoted 10 lines
to
test the new features introduced in Tom's patchset with hardware offloads.---
Alexander Duyck (2):
ip6_gre: Do not allow segmentation offloadsGRE_CSUMis enabled
with FOU/GUE
intel: Add support for IPv6 IP-in-IP offload
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Dave, I have this series added to my queue.
Why would you if it depends upon Tom's series, as mentioned above, which isn't even in my tree yet?
I was not able to apply his patches to my dev-queue due to conflicts and from discussion with Alex, I made the mistake in assuming the issues I saw was because it did not have Tom's driver changes.
I thought Dave had already applied the patches to his tree? If so there shouldn't be a need for you to pull them in and apply them. That might also be the source of the conflicts if they are already in the tree.
- Alex
David Miller
maintainerFrom: Alexander Duyck <[email protected]>
Date: Wed, 18 May 2016 10:44:40 -0700
Quoted 7 lines
This patch series is meant to be applied after:
[PATCH v7 net-next 00/16] ipv6: Enable GUEoIPv6 and more fixes for v6 tunnelingThe first patch addresses an issue we already resolved in the GREv4 and is now present in GREv6 with the introduction of FOU/GUE for IPv6 based GRE tunnels.
Quoted 7 lines
The second patch goes through and enables IPv6 tunnel offloads for the Intel NICs that already support the IPv4 based IP-in-IP tunnel offloads. I have only done a bit of touch testing but have seen ~20 Gb/s over an i40e interface using a v4-in-v6 tunnel, and I have verified IPv6 GRE is still passing traffic at around the same rate. I plan to do further testing but with these patches present it should enable a wider audience to be able to test the new features introduced in Tom's patchset with hardware offloads.
Series applied, thanks Alex.