mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Stringer <joestringer@nicira.com>
To: netdev@vger.kernel.org, pshelar@nicira.com
Cc: linux-kernel@vger.kernel.org, pablo@netfilter.org,
	fwestpha@redhat.com, hannes@redhat.com, tgraf@suug.ch,
	jpettit@nicira.com, jesse@nicira.com
Subject: [PATCHv4 net-next 00/10] OVS conntrack support
Date: Tue, 18 Aug 2015 16:39:38 -0700	[thread overview]
Message-ID: <1439941188-19293-1-git-send-email-joestringer@nicira.com> (raw)

The goal of this series is to allow OVS to send packets through the Linux
kernel connection tracker, and subsequently match on fields populated by
conntrack.

This version addresses the feedback from v3, primarily shifting the masked
set of connmark and connlabel to nest under the conntrack action. This
simplifies the API from the perspective of the SET_FIELD actions by not
requiring special-casing for these fields. The fields are still maskable, but
must be set as part of conntrack action execution. Some related refactoring and
code simplifications have been rolled in due to these changes as well.

This functionality is enabled through the CONFIG_OPENVSWITCH_CONNTRACK option.

The branch below has been updated with the corresponding userspace pieces:
https://github.com/joestringer/ovs dev/ct_20150818

v4: Shift ability to set ct_mark/ct_label into ACTION_ATTR_CT.
    Streamline fetching/setting conntrack fields.
    Update some documentation.
    Add acks from v2/v3 review.

v3: Better handling of skb->dst in output/fragmentation
    Address cases involving l2 metadata and checksums
    Make MRU types more consistent
    Better cleanup in error paths
    Fix sparse warnings

v2: Split out per-netns connlabel width setting functions
    Simplify reference tracking in output path.
    Handle output cases where flow key is invalidated by prior push/pop
    Store entire L2 header to apply to fragments
    Various bits of refactoring, comments, styles, log improvements
    Defer patch to scrub skb
    Rebase

v1: First non-RFC post.
    Fragment handling.
    Conntrack label support.

Joe Stringer (10):
  openvswitch: Serialize acts with original netlink len
  openvswitch: Move MASKED* macros to datapath.h
  ipv6: Export nf_ct_frag6_gather()
  dst: Add __skb_dst_copy() variation
  openvswitch: Add conntrack action
  openvswitch: Allow matching on conntrack mark
  netfilter: Always export nf_connlabels_replace()
  netfilter: connlabels: Export setting connlabel length
  openvswitch: Allow matching on conntrack label
  openvswitch: Allow attaching helpers to ct action

 include/net/dst.h                           |   9 +-
 include/net/netfilter/nf_conntrack_labels.h |   4 +
 include/uapi/linux/openvswitch.h            |  58 +++
 net/ipv6/netfilter/nf_conntrack_reasm.c     |   1 +
 net/netfilter/nf_conntrack_labels.c         |  34 +-
 net/netfilter/xt_connlabel.c                |  16 +-
 net/openvswitch/Kconfig                     |  11 +
 net/openvswitch/Makefile                    |   2 +
 net/openvswitch/actions.c                   | 229 +++++++--
 net/openvswitch/conntrack.c                 | 713 ++++++++++++++++++++++++++++
 net/openvswitch/conntrack.h                 |  92 ++++
 net/openvswitch/datapath.c                  |  74 ++-
 net/openvswitch/datapath.h                  |  12 +
 net/openvswitch/flow.c                      |   2 +
 net/openvswitch/flow.h                      |   9 +
 net/openvswitch/flow_netlink.c              | 103 +++-
 net/openvswitch/flow_netlink.h              |   4 +-
 net/openvswitch/vport.c                     |   1 +
 18 files changed, 1293 insertions(+), 81 deletions(-)
 create mode 100644 net/openvswitch/conntrack.c
 create mode 100644 net/openvswitch/conntrack.h

-- 
2.1.4


             reply	other threads:[~2015-08-18 23:42 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-18 23:39 Joe Stringer [this message]
2015-08-18 23:39 ` [PATCHv4 net-next 01/10] openvswitch: Serialize acts with original netlink len Joe Stringer
2015-08-18 23:39 ` [PATCHv4 net-next 02/10] openvswitch: Move MASKED* macros to datapath.h Joe Stringer
2015-08-18 23:39 ` [PATCHv4 net-next 03/10] ipv6: Export nf_ct_frag6_gather() Joe Stringer
2015-08-18 23:39 ` [PATCHv4 net-next 04/10] dst: Add __skb_dst_copy() variation Joe Stringer
2015-08-18 23:39 ` [PATCHv4 net-next 05/10] openvswitch: Add conntrack action Joe Stringer
2015-08-19 20:30   ` Pravin Shelar
2015-08-20 16:21   ` Thomas Graf
2015-08-18 23:39 ` [PATCHv4 net-next 06/10] openvswitch: Allow matching on conntrack mark Joe Stringer
2015-08-19 20:47   ` Pravin Shelar
2015-08-21  0:41     ` Joe Stringer
2015-08-18 23:39 ` [PATCHv4 net-next 07/10] netfilter: Always export nf_connlabels_replace() Joe Stringer
2015-08-19 20:47   ` Pravin Shelar
2015-08-20 16:22   ` Thomas Graf
2015-08-18 23:39 ` [PATCHv4 net-next 08/10] netfilter: connlabels: Export setting connlabel length Joe Stringer
2015-08-19 20:48   ` Pravin Shelar
2015-08-20 16:23   ` Thomas Graf
2015-08-18 23:39 ` [PATCHv4 net-next 09/10] openvswitch: Allow matching on conntrack label Joe Stringer
2015-08-19 21:24   ` Pravin Shelar
2015-08-19 23:04     ` Joe Stringer
2015-08-20 15:45       ` Pravin Shelar
2015-08-20 19:13         ` Joe Stringer
2015-08-20 21:01           ` Pravin Shelar
2015-08-21  0:40             ` Joe Stringer
2015-08-18 23:39 ` [PATCHv4 net-next 10/10] openvswitch: Allow attaching helpers to ct action Joe Stringer
2015-08-19 22:57   ` Pravin Shelar
2015-08-21  0:47     ` Joe Stringer
2015-08-21 17:39       ` Pravin Shelar

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=1439941188-19293-1-git-send-email-joestringer@nicira.com \
    --to=joestringer@nicira.com \
    --cc=fwestpha@redhat.com \
    --cc=hannes@redhat.com \
    --cc=jesse@nicira.com \
    --cc=jpettit@nicira.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=pshelar@nicira.com \
    --cc=tgraf@suug.ch \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®