netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2.56] datapath: Add basic MPLS support to kernel
@ 2014-04-01  3:46 Simon Horman
       [not found] ` <1396323981-20700-1-git-send-email-horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Simon Horman @ 2014-04-01  3:46 UTC (permalink / raw)
  To: dev-yBygre7rU0TnMu66kgdUjQ, netdev-u79uwXL29TY76Z2rM5mHXA,
	Jesse Gross, Pravin B Shelar
  Cc: Ravi K

Hi Jesse, Hi Pravin, Hi All,

This patchset makes use of a whitelist to only allow mpls_push actions to
be applied to packets with an ethertype where the tag order is well defined
and implemented. This avoids the problem of where an MPLS LSE should be
added in relation to a VLAN or similar tag.

The list of allowed ethertypes is currently:

  - ETH_P_IP (0x0800)
  - ETH_P_ARP (0x0806)
  - ETH_P_RARP (0x0835)
  - ETH_P_IPV6 (0x86DD)
  - ETH_P_MPLS_UC (0x8847)
  - ETH_P_MPLS_MC (0x8847)


I have updated this patch since v2.55 so that:

* The MPLS ethertypes are included in the whitelist of ethertypes
  that allow mpls_push actions.
* It once again applies on top of the master branch


Simon Horman (1):
  datapath: Add basic MPLS support to kernel

 OPENFLOW-1.1+                                   |   4 -
 datapath/Modules.mk                             |   1 +
 datapath/actions.c                              | 119 +++++++++-
 datapath/datapath.c                             |   4 +-
 datapath/flow.c                                 |  29 +++
 datapath/flow.h                                 |  17 +-
 datapath/flow_netlink.c                         | 298 ++++++++++++++++++++++--
 datapath/flow_netlink.h                         |   2 +-
 datapath/linux/compat/gso.c                     |  70 +++++-
 datapath/linux/compat/gso.h                     |  41 +++-
 datapath/linux/compat/include/linux/netdevice.h |   6 +-
 datapath/linux/compat/netdevice.c               |  10 +-
 datapath/mpls.h                                 |  15 ++
 include/linux/openvswitch.h                     |   9 +-
 14 files changed, 568 insertions(+), 57 deletions(-)
 create mode 100644 datapath/mpls.h

-- 
1.8.4

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

end of thread, other threads:[~2014-05-11  2:49 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01  3:46 [PATCH v2.56] datapath: Add basic MPLS support to kernel Simon Horman
     [not found] ` <1396323981-20700-1-git-send-email-horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2014-04-01  3:46   ` Simon Horman
2014-04-24  8:57     ` [ovs-dev] " YAMAMOTO Takashi
2014-04-24 23:24       ` Simon Horman
     [not found]         ` <20140424232441.GA6282-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2014-04-25  8:06           ` YAMAMOTO Takashi
     [not found]             ` <20140425080639.DDFA371E74-0CV7wKnmZOB82hYKe6nXyg@public.gmane.org>
2014-04-25 19:57               ` Jesse Gross
     [not found]                 ` <CAEP_g=8y=jXukP=a2xyk4XMTrBLYWPQOgbTO_h8LE_mVMB9tFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-28  2:04                   ` YAMAMOTO Takashi
2014-04-28  7:00                   ` Simon Horman
     [not found]                     ` <20140428070012.GB21494-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2014-04-28 21:37                       ` Jesse Gross
2014-04-29  0:13                         ` [ovs-dev] " Simon Horman
2014-04-29 18:41                           ` Jesse Gross
2014-04-30  5:58                             ` Simon Horman
     [not found]                               ` <20140430055807.GA8246-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2014-04-30 22:56                                 ` Jesse Gross
2014-05-01  8:54                                   ` [ovs-dev] " Simon Horman
     [not found]                                     ` <20140501085442.GA20410-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2014-05-01 16:45                                       ` Jesse Gross
     [not found]                                         ` <CAEP_g=-rBXBJ4-CMRuPTxGnrqT-0PNMttvA5_HdugeM5to5Cew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-11  2:49                                           ` Simon Horman
2014-04-09 23:33   ` Simon Horman

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