netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/5] Add support for Geneve udp port offload
@ 2015-12-14 20:21 Anjali Singhai Jain
  2015-12-14 20:21 ` [PATCH v5 1/5] geneve: Add geneve udp port offload for ethernet devices Anjali Singhai Jain
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Anjali Singhai Jain @ 2015-12-14 20:21 UTC (permalink / raw)
  To: netdev; +Cc: Anjali Singhai Jain, jeffrey.t.kirsher

This patch series adds new ndo ops for Geneve add/del port, so as
to help offload Geneve tunnel functionalities such as RX checksum,
RSS, filters etc.

i40e driver has been tested with the changes to make sure the offloads
happen.

We do understand that this is not the ideal solution and most likely
will be redone with a more generic offload framework.
But this certainly will enable us to start seeing benefits of the
accelerations for Geneve tunnels.

As a side note, we did find an existing issue in i40e driver where a
service task can modify tunnel data structures with no locks held to
help linearize access. A separate patch will be taking care of that issue.

A question out to the community is regarding the driver Kconfig parameters
for VxLAN and Geneve, it would be ideal to drop those if there is a way
to help resolve vxlan/geneve_get_rx_port symbols while the tunnel modules
are not loaded.

Performance numbers:
With the offloads enable on X722 devices with remote checksum enabled
and no other tuning in terms of cpu governer etc on my test machine:

With offload
Throughput: 5527Mbits/sec with a single thread
%cpu: ~43% per core with 4 threads

Without offload
Throughput: 2364Mbits/sec with a single thread
%cpu: ~99% per core with 4 threads

These numbers will get better for X722 as it is being worked. But
this does bring out the delta in terms of when the stack is notified
with csum_level 1 and CHECKSUM_UNNECESSARY vs not without the RX offload.

---
v2: Comment fix.
v3: Add Performance data.
v4: Comment fix and split a patch into two.
v5: Add cover letter.

Anjali Singhai Jain (5):
  geneve: Add geneve udp port offload for ethernet devices
  i40e: geneve tunnel offload support
  i40e: Kernel dependency update for i40e to support geneve offload
  geneve: Add geneve_get_rx_port support
  i40e: Call geneve_get_rx_port to get the existing Geneve ports

 drivers/net/ethernet/intel/Kconfig          |  10 ++
 drivers/net/ethernet/intel/i40e/i40e.h      |  16 +--
 drivers/net/ethernet/intel/i40e/i40e_main.c | 170 +++++++++++++++++++++++-----
 drivers/net/ethernet/intel/i40e/i40e_txrx.c |   8 +-
 drivers/net/ethernet/intel/i40e/i40e_txrx.h |   2 +-
 drivers/net/geneve.c                        |  47 ++++++++
 include/linux/netdevice.h                   |  20 +++-
 include/net/geneve.h                        |   8 ++
 8 files changed, 237 insertions(+), 44 deletions(-)

-- 
1.8.1.4

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

end of thread, other threads:[~2015-12-16 15:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 20:21 [PATCH v5 0/5] Add support for Geneve udp port offload Anjali Singhai Jain
2015-12-14 20:21 ` [PATCH v5 1/5] geneve: Add geneve udp port offload for ethernet devices Anjali Singhai Jain
2015-12-14 20:21 ` [PATCH v5 2/5] i40e: geneve tunnel offload support Anjali Singhai Jain
2015-12-14 20:21 ` [PATCH v5 3/5] i40e: Kernel dependency update for i40e to support geneve offload Anjali Singhai Jain
2015-12-14 20:21 ` [PATCH v5 4/5] geneve: Add geneve_get_rx_port support Anjali Singhai Jain
2015-12-14 20:21 ` [PATCH v5 5/5] i40e: Call geneve_get_rx_port to get the existing Geneve ports Anjali Singhai Jain
2015-12-16 15:59 ` [PATCH v5 0/5] Add support for Geneve udp port offload David Miller

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).