Re: [ovs-dev] [PATCH] nx-match: Take into account leading header when calculating pad

2012-07-19 Thread Simon Horman
On Thu, Jul 19, 2012 at 11:09:19PM -0700, Ben Pfaff wrote: > On Fri, Jul 20, 2012 at 10:29:36AM +0900, Simon Horman wrote: > > In the case of Open Flow 1.2, which is currently the only > > time that OXM is be used, there is a 4 byte header before > > the match which needs to be taken into account w

Re: [ovs-dev] [PATCH] nx-match: Take into account leading header when calculating pad

2012-07-19 Thread Ben Pfaff
On Fri, Jul 20, 2012 at 10:29:36AM +0900, Simon Horman wrote: > In the case of Open Flow 1.2, which is currently the only > time that OXM is be used, there is a 4 byte header before > the match which needs to be taken into account when calculating > the pad length. > > This is not entirely pretty,

[ovs-dev] [PATCH] nx-match: Take into account leading header when calculating pad

2012-07-19 Thread Simon Horman
In the case of Open Flow 1.2, which is currently the only time that OXM is be used, there is a 4 byte header before the match which needs to be taken into account when calculating the pad length. This is not entirely pretty, but it does seem to be correct. Signed-off-by: Simon Horman --- v7 *