netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation
@ 2012-11-12  8:36 Joseph Gasparakis
  2012-11-12  8:36 ` [PATCH v2 1/3] net: " Joseph Gasparakis
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Joseph Gasparakis @ 2012-11-12  8:36 UTC (permalink / raw)
  To: davem, shemminger, chrisw; +Cc: Joseph Gasparakis, netdev, linux-kernel, dmitry

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 would mean that the drivers would need to parse the
sk_buff data in hot-path, having a negative impact in the performance.

Adding in sk_buff a pointer to the skbuff of the inner packet made sense, but
would be a complicated change as assumptions needed to be made with regards to
helper functions such as skb_clone() skb_copy(). Also code for the existing
encapsulation protocols (such as VXLAN and IP GRE) had to be reworked, so the
decision was to have the simple approach of adding these three fields.

v2 Makes sure that checksumming for IP GRE does not take place if the offload flag is set in the skb's netdev features

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-14  0:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-12  8:36 [PATCH v2 net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation Joseph Gasparakis
2012-11-12  8:36 ` [PATCH v2 1/3] net: " Joseph Gasparakis
2012-11-12 12:31   ` saeed bishara
2012-11-12  8:36 ` [PATCH v2 2/3] vxlan: capture inner headers during encapsulation Joseph Gasparakis
2012-11-12  8:36 ` [PATCH v2 3/3] ipgre: " Joseph Gasparakis
2012-11-12 11:20   ` Dmitry Kravkov
2012-11-14  0:42 ` [PATCH v2 net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation Joseph Gasparakis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).