All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pravin Shelar <pshelar@nicira.com>
To: Jarno Rajahalme <jrajahalme@nicira.com>
Cc: netdev <netdev@vger.kernel.org>,
	"dev@openvswitch.org" <dev@openvswitch.org>
Subject: Re: [ovs-dev] [PATCH] net: openvswitch: Support masked set actions.
Date: Thu, 22 Jan 2015 14:41:05 -0800	[thread overview]
Message-ID: <CALnjE+pCb_WCT=0ZUbK80__WFJEernoBU=35PvdPNDEZuF+sgQ@mail.gmail.com> (raw)
In-Reply-To: <1418170225-9328-1-git-send-email-jrajahalme@nicira.com>

On Tue, Dec 9, 2014 at 4:10 PM, Jarno Rajahalme <jrajahalme@nicira.com> wrote:
> OVS userspace already probes the openvswitch kernel module for
> OVS_ACTION_ATTR_SET_MASKED support.  This patch adds the kernel module
> implementation of masked set actions.
>
> The existing set action sets many fields at once.  When only a subset
> of the IP header fields, for example, should be modified, all the IP
> fields need to be exact matched so that the other field values can be
> copied to the set action.  A masked set action allows modification of
> an arbitrary subset of the supported header bits without requiring the
> rest to be matched.
>
> Masked set action is now supported for all writeable key types, except
> for the tunnel key.  The set tunnel action is an exception as any
> input tunnel info is cleared before action processing starts, so there
> is no tunnel info to mask.
>
> The kernel module converts all (non-tunnel) set actions to masked set
> actions.  This makes action processing more uniform, and results in
> less branching and duplicating the action processing code.  When
> returning actions to userspace, the fully masked set actions are
> converted back to normal set actions.  We use a kernel internal action
> code to be able to tell the userspace provided and converted masked
> set actions apart.
>
> Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
> ---

checkpatch few gave few warnings. otherwise looks good.

      parent reply	other threads:[~2015-01-22 22:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-10  0:10 [PATCH] net: openvswitch: Support masked set actions Jarno Rajahalme
2014-12-10 19:48 ` David Miller
2014-12-10 20:03   ` Jarno Rajahalme
2014-12-11  2:05     ` Jesse Gross
     [not found] ` <1418170225-9328-1-git-send-email-jrajahalme-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org>
2014-12-11  2:03   ` Jesse Gross
2015-02-05 18:20     ` [ovs-dev] " Jarno Rajahalme
2015-01-22 22:41 ` Pravin Shelar [this message]

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='CALnjE+pCb_WCT=0ZUbK80__WFJEernoBU=35PvdPNDEZuF+sgQ@mail.gmail.com' \
    --to=pshelar@nicira.com \
    --cc=dev@openvswitch.org \
    --cc=jrajahalme@nicira.com \
    --cc=netdev@vger.kernel.org \
    /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.