[ovs-dev] [PATCH 2/2] Track ethertype changes for learn_parse()

Simon Horman horms at verge.net.au
Thu May 2 04:46:39 UTC 2013


On Wed, May 01, 2013 at 09:42:18PM -0700, Jesse Gross wrote:
> On Wed, May 1, 2013 at 1:11 AM, Simon Horman <horms at verge.net.au> wrote:
> > learn_parse() needs to know the current ethertype, including any
> > updates made by MPLS push and pop actions in order to determine if
> > access to fields is valid or not.
> >
> > Changes made to ethertype my VLAN push and pop actions are excluded
> > from this logic as they do not effect the behaviour of learn_parse.
> >
> > Signed-off-by: Simon Horman <horms at verge.net.au>
> 
> It seems like it may be better to just fully separate out parsing from
> validation here like is done with the other actions and avoid the
> issue altogether.

Ok, that makes sense. I believe that validation occurs
for learn_actions anyway. So it is probably sufficient to just remove
the checks from learn_parse().



More information about the dev mailing list