[PATCH v4 1/5] net: Add support for hardware-offloaded encapsulation

2012-12-07 Thread Joseph Gasparakis
river should push the decapsulated packet up to the stack, again with CHECKSUM_UNNECESSARY. In ether case, the protocol driver should set the skb->encapsulation flag back to zero. Fianlly the protocol driver should have NETIF_F_RXCSUM flag set in its features. Signed-off-by: Joseph Gasparakis

[PATCH v4 5/5] vxlan: Add capability of Rx checksum offload for inner packet

2012-12-07 Thread Joseph Gasparakis
This patch adds capability in vxlan to identify received checksummed inner packets and signal them to the upper layers of the stack. The driver needs to set the skb->encapsulation bit and also set the skb->ip_summed to CHECKSUM_UNNECESSARY. Signed-off-by: Joseph Gasparakis --- drive

[PATCH v4 3/5] vxlan: capture inner headers during encapsulation

2012-12-07 Thread Joseph Gasparakis
Allow VXLAN to make use of Tx checksum offloading and Tx scatter-gather. The advantage to these two changes is that it also allows the VXLAN to make use of GSO. Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr Signed-off-by: Alexander Duyck --- drivers/net/vxlan.c | 10

[PATCH v4 4/5] ixgbe: Adding tx encapsulation capability

2012-12-07 Thread Joseph Gasparakis
This patch allows ixgbe to recognize encapsulated packets and do the tx checksum offload in hardware. This patch is only for demonstration purposes and should not be applied. Signed-off-by: Joseph Gasparakis Signed-off-by: Alexander Duyck --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 46

[PATCH v4 2/5] net: Handle encapsulated offloads before fragmentation or handing to lower dev

2012-12-07 Thread Joseph Gasparakis
From: Alexander Duyck This change allows the VXLAN to enable Tx checksum offloading even on devices that do not support encapsulated checksum offloads. The advantage to this is that it allows for the lower device to change due to routing table changes without impacting features on the VXLAN itsel

[PATCH v4 net-next 0/5] tunneling: Add support for hardware-offloaded encapsulation

2012-12-07 Thread Joseph Gasparakis
The series contains updates to add in the NIC Rx and Tx checksumming support for encapsulated packets. The sk_buff needs to somehow have information of the inner packet, and adding three fields for the inner mac, network and transport headers was the prefered approach. Not adding these fields wo

Re: [PATCH v3 1/4] net: Add support for hardware-offloaded encapsulation

2012-12-07 Thread Joseph Gasparakis
On Fri, 7 Dec 2012, David Miller wrote: > From: Joseph Gasparakis > Date: Fri, 7 Dec 2012 11:52:43 -0800 (PST) > > > > > > > On Fri, 7 Dec 2012, David Miller wrote: > > > >> From: Joseph Gasparakis > >> Date: Fri, 7 Dec 2012 11:41:46 -08

Re: [PATCH v3 1/4] net: Add support for hardware-offloaded encapsulation

2012-12-07 Thread Joseph Gasparakis
On Fri, 7 Dec 2012, David Miller wrote: > From: Joseph Gasparakis > Date: Fri, 7 Dec 2012 11:41:46 -0800 (PST) > > > > > > > On Fri, 7 Dec 2012, David Miller wrote: > > > >> From: Joseph Gasparakis > >> Date: Fri, 7 Dec 2012 10:24:17 -0

Re: [PATCH v3 1/4] net: Add support for hardware-offloaded encapsulation

2012-12-07 Thread Joseph Gasparakis
On Fri, 7 Dec 2012, David Miller wrote: > From: Joseph Gasparakis > Date: Fri, 7 Dec 2012 10:24:17 -0800 (PST) > > > So the idea here is that the driver will use the headers for checksumming > > if the skb->encapsulation bit is on. The bit should be set in

Re: [PATCH v3 1/4] net: Add support for hardware-offloaded encapsulation

2012-12-07 Thread Joseph Gasparakis
On Fri, 7 Dec 2012, Ben Hutchings wrote: > On Fri, 2012-12-07 at 08:45 -0800, Alexander Duyck wrote: > > On 12/07/2012 02:07 AM, Ben Hutchings wrote: > > > On Thu, 2012-12-06 at 17:56 -0800, Joseph Gasparakis wrote: > > >> This patch adds support in the kernel fo

[PATCH] vxlan: Add capability of Rx checksum offload for inner packet

2012-12-06 Thread Joseph Gasparakis
This patch adds capability in vxlan to identify received checksummed inner packets and signal them to the upper layers of the stack. The driver needs to set the skb->encapsulation bit and also set the skb->ip_summed to CHECKSUM_UNNECESSARY. Signed-off-by: Joseph Gasparakis --- drive

[PATCH v3 1/4] net: Add support for hardware-offloaded encapsulation

2012-12-06 Thread Joseph Gasparakis
This patch adds support in the kernel for offloading in the NIC Tx and Rx checksumming for encapsulated packets (such as VXLAN and IP GRE). Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr Signed-off-by: Alexander Duyck --- include/linux/ip.h|5 ++ include

[PATCH v3 3/4] vxlan: capture inner headers during encapsulation

2012-12-06 Thread Joseph Gasparakis
Allow VXLAN to make use of Tx checksum offloading and Tx scatter-gather. The advantage to these two changes is that it also allows the VXLAN to make use of GSO. Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr Signed-off-by: Alexander Duyck --- drivers/net/vxlan.c | 10

[PATCH v3 2/4] net: Handle encapsulated offloads before fragmentation or handing to lower dev

2012-12-06 Thread Joseph Gasparakis
From: Alexander Duyck This change allows the VXLAN to enable Tx checksum offloading even on devices that do not support encapsulated checksum offloads. The advantage to this is that it allows for the lower device to change due to routing table changes without impacting features on the VXLAN itsel

[RFC PATCH v3 4/4] ixgbe: Adding tx encapsulation capability

2012-12-06 Thread Joseph Gasparakis
This patch allows ixgbe to recognize encapsulated packets and do the tx checksum offload in hardware. This patch is only for demonstration purposes and should not be applied. Signed-off-by: Joseph Gasparakis Signed-off-by: Alexander Duyck --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

[PATCH v3 net-next 0/4] tunneling: Add support for hardware-offloaded encapsulation

2012-12-06 Thread Joseph Gasparakis
The series contains updates to add in the NIC Rx and Tx checksumming support for encapsulated packets. The sk_buff needs to somehow have information of the inner packet, and adding three fields for the inner mac, network and transport headers was the prefered approach. Not adding these fields wo

Re: [PATCH v2 net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation

2012-11-13 Thread Joseph Gasparakis
On Mon, 12 Nov 2012, Joseph Gasparakis wrote: > The series contains updates to add in the NIC Rx and Tx checksumming support > for encapsulated packets. > > The sk_buff needs to somehow have information of the inner packet, and adding > three fields for the inner mac, networ

[PATCH v2 2/3] vxlan: capture inner headers during encapsulation

2012-11-12 Thread Joseph Gasparakis
Populating the inner header pointers of skb for vxlan Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- drivers/net/vxlan.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 030559d..14e6c8f 100644 --- a

[PATCH v2 3/3] ipgre: capture inner headers during encapsulation

2012-11-12 Thread Joseph Gasparakis
Populating the inner header pointers of skb for ipgre This patch has been compile-tested only. Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- net/ipv4/ip_gre.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/net/ipv4/ip_gre.c b/net

[PATCH v2 1/3] net: Add support for hardware-offloaded encapsulation

2012-11-12 Thread Joseph Gasparakis
This patch adds support in the kernel for offloading in the NIC Tx and Rx checksumming for encapsulated packets (such as VXLAN and IP GRE) Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- Documentation/networking/netdev-features.txt | 10 +++ include/linux/if_ether.h

[PATCH v2 net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation

2012-11-12 Thread Joseph Gasparakis
The series contains updates to add in the NIC Rx and Tx checksumming support for encapsulated packets. The sk_buff needs to somehow have information of the inner packet, and adding three fields for the inner mac, network and transport headers was the prefered approach. Not adding these fields wo

Re: [PATCH v2 3/3] ipgre: capture inner headers during encapsulation

2012-11-11 Thread Joseph Gasparakis
On Sun, 11 Nov 2012, David Miller wrote: > > Please post the entire series again when making updates to any of > the patches, thank you. > Will do. Thanks Dave. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

[PATCH v2 3/3] ipgre: capture inner headers during encapsulation

2012-11-11 Thread Joseph Gasparakis
Populating the inner header pointers of skb for ipgre This patch has been compile-tested only. v2 Makes sure that checksumming does not take place if the offload flag is set in the skb's netdev features Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- net

Re: [PATCH 3/3] ipgre: capture inner headers during encapsulation

2012-11-11 Thread Joseph Gasparakis
On Sun, 11 Nov 2012, Dmitry Kravkov wrote: > On Thu, 2012-11-08 at 18:18 -0800, Joseph Gasparakis wrote: > > > > if (skb->ip_summed == CHECKSUM_PARTIAL && > > skb_checksum_help(skb)) > > @@ -902,6 +903,17 @@ static netdev_tx_t ipgre_tunnel

[PATCH 3/3] ipgre: capture inner headers during encapsulation

2012-11-08 Thread Joseph Gasparakis
Populating the inner header pointers of skb for ipgre This patch has been compile-tested only. Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- net/ipv4/ip_gre.c | 12 1 file changed, 12 insertions(+) diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c

[PATCH 1/3] net: Add support for hardware-offloaded encapsulation

2012-11-08 Thread Joseph Gasparakis
This patch adds support in the kernel for offloading in the NIC Tx and Rx checksumming for encapsulated packets (such as VXLAN and IP GRE) Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- Documentation/networking/netdev-features.txt | 10 +++ include/linux/if_ether.h

[PATCH 2/3] vxlan: capture inner headers during encapsulation

2012-11-08 Thread Joseph Gasparakis
Populating the inner header pointers of skb for vxlan Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- drivers/net/vxlan.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 030559d..14e6c8f 100644 --- a

[PATCH net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation

2012-11-08 Thread Joseph Gasparakis
The series contains updates to add in the NIC Rx and Tx checksumming support for encapsulated packets. The sk_buff needs to somehow have information of the inner packet, and adding three fields for the inner mac, network and transport headers was the prefered approach. Not adding these fields wo