All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Benc <jbenc@redhat.com>
To: netdev@vger.kernel.org
Cc: dev@openvswitch.org, Pravin Shelar <pshelar@ovn.org>,
	Lorand Jakab <lojakab@cisco.com>,
	Simon Horman <simon.horman@netronome.com>
Subject: [PATCH net-next v13 0/8] openvswitch: support for layer 3 encapsulated packets
Date: Thu, 10 Nov 2016 16:28:16 +0100	[thread overview]
Message-ID: <cover.1478791347.git.jbenc@redhat.com> (raw)

At the core of this patch set is removing the assumption in Open vSwitch
datapath that all packets have Ethernet header.

The implementation relies on the presence of pop_eth and push_eth actions
in datapath flows to facilitate adding and removing Ethernet headers as
appropriate. The construction of such flows is left up to user-space.

This series is based on work by Simon Horman, Lorand Jakab, Thomas Morin and
others. I kept Lorand's and Simon's s-o-b in the patches that are derived
from v11 to record their authorship of parts of the code.

Changes from v12 to v13:

* Addressed Pravin's feedback.
* Removed the GRE vport conversion patch; L3 GRE ports should be created by
  rtnetlink instead.

Main changes from v11 to v12:

* The patches were restructured and split differently for easier review.
* They were rebased and adjusted to the current net-next. Especially MPLS
  handling is different (and easier) thanks to the recent MPLS GSO rework.
* Several bugs were discovered and fixed. The most notable is fragment
  handling: header adjustment for ARPHRD_NONE devices on tx needs to be done
  after refragmentation, not before it. This required significant changes in
  the patchset. Another one is stricter checking of attributes (match on L2
  vs. L3 packet) at the kernel level.
* Instead of is_layer3 bool, a mac_proto field is used.

Jiri Benc (8):
  openvswitch: use hard_header_len instead of hardcoded ETH_HLEN
  openvswitch: add mac_proto field to the flow key
  openvswitch: pass mac_proto to ovs_vport_send
  openvswitch: support MPLS push and pop for L3 packets
  openvswitch: add processing of L3 packets
  openvswitch: netlink: support L3 packets
  openvswitch: add Ethernet push and pop actions
  openvswitch: allow L3 netdev ports

 include/uapi/linux/openvswitch.h |  15 ++++
 net/openvswitch/actions.c        | 111 +++++++++++++++++-------
 net/openvswitch/datapath.c       |  13 +--
 net/openvswitch/flow.c           | 105 +++++++++++++++++------
 net/openvswitch/flow.h           |  22 +++++
 net/openvswitch/flow_netlink.c   | 179 ++++++++++++++++++++++++++-------------
 net/openvswitch/vport-netdev.c   |   9 +-
 net/openvswitch/vport.c          |  31 +++++--
 net/openvswitch/vport.h          |   2 +-
 9 files changed, 353 insertions(+), 134 deletions(-)

-- 
1.8.3.1

             reply	other threads:[~2016-11-10 15:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-10 15:28 Jiri Benc [this message]
2016-11-10 15:28 ` [PATCH net-next v13 1/8] openvswitch: use hard_header_len instead of hardcoded ETH_HLEN Jiri Benc
2016-11-10 15:28 ` [PATCH net-next v13 2/8] openvswitch: add mac_proto field to the flow key Jiri Benc
2016-11-10 15:28 ` [PATCH net-next v13 3/8] openvswitch: pass mac_proto to ovs_vport_send Jiri Benc
2016-11-10 15:28 ` [PATCH net-next v13 4/8] openvswitch: support MPLS push and pop for L3 packets Jiri Benc
2016-11-10 15:28 ` [PATCH net-next v13 5/8] openvswitch: add processing of " Jiri Benc
2016-11-12 23:58   ` Pravin Shelar
2016-11-10 15:28 ` [PATCH net-next v13 6/8] openvswitch: netlink: support " Jiri Benc
2016-11-10 15:28 ` [PATCH net-next v13 7/8] openvswitch: add Ethernet push and pop actions Jiri Benc
     [not found]   ` <fefa3d36d50639e176e831fefbc53d38ab2f04f6.1478791347.git.jbenc-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-11-12 23:57     ` Pravin Shelar
2016-11-10 15:28 ` [PATCH net-next v13 8/8] openvswitch: allow L3 netdev ports Jiri Benc
2016-11-13  5:51 ` [PATCH net-next v13 0/8] openvswitch: support for layer 3 encapsulated packets David Miller
2016-11-15 13:57 ` Yang, Yi Y
2016-11-15 19:01   ` [ovs-dev] " Thadeu Lima de Souza Cascardo
2016-11-15 23:16     ` Yang, Yi Y

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1478791347.git.jbenc@redhat.com \
    --to=jbenc@redhat.com \
    --cc=dev@openvswitch.org \
    --cc=lojakab@cisco.com \
    --cc=netdev@vger.kernel.org \
    --cc=pshelar@ovn.org \
    --cc=simon.horman@netronome.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.