[ovs-dev] [PATCH v2 1/3] userspace: add support for pop_eth and push_eth actions

Jesse Gross jesse at nicira.com
Mon Jan 6 16:30:48 UTC 2014


On Tue, Dec 24, 2013 at 9:02 AM, Lorand Jakab <lojakab at cisco.com> wrote:
> diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h
> index 5137c2f..46b3634 100644
> --- a/include/linux/openvswitch.h
> +++ b/include/linux/openvswitch.h
>   * @OVS_ACTION_ATTR_OUTPUT: Output packet to port.
> @@ -569,6 +579,8 @@ enum ovs_action_attr {
>         OVS_ACTION_ATTR_SAMPLE,       /* Nested OVS_SAMPLE_ATTR_*. */
>         OVS_ACTION_ATTR_PUSH_MPLS,    /* struct ovs_action_push_mpls. */
>         OVS_ACTION_ATTR_POP_MPLS,     /* __be16 ethertype. */
> +       OVS_ACTION_ATTR_PUSH_ETH,     /* struct ovs_action_push_eth. */
> +       OVS_ACTION_ATTR_POP_ETH,      /* No argument. */
>         __OVS_ACTION_ATTR_MAX
>  };

Given that there is no kernel code for MPLS currently checked in, we
should temporarily move those attributes to a high value and make the
push/pop Ethernet actions be the next in the list after SAMPLE
(similar to the MPLS match).



More information about the dev mailing list