[ovs-dev] [PATCH ovn v2] ovn-northd: Fix router policy pkt mark over flow if the value is greater than signed int.

Numan Siddique numans at ovn.org
Mon Sep 21 09:04:18 UTC 2020


On Fri, Sep 18, 2020 at 9:05 PM Dumitru Ceara <dceara at redhat.com> wrote:

> On 9/18/20 5:29 PM, numans at ovn.org wrote:
> > From: Numan Siddique <numans at ovn.org>
> >
> > If the value of pkt_mark in the router policy options is greater than
> 2147483647, we
> > are ignoring it. This is because we use smap_get_int(). This patch fixes
> this issue
> > by adding a wrapper function - ovn_smap_get_uint(). The OpenvSwitch
> library doesn't have
> > this smap helper function.
> >
> > ovn_smap_get_uint() needs to be removed once the OpenvSwitch library has
> this helper
> > function. A comment has been added in the code for this.
> >
> > Fixes: a123ef0fb8fd("Support packet metadata marking for logical router
> policies.")
> > Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1878248
> > Reported-by: Alexander Constantinescu <aconstan at redhat.com>
> > Signed-off-by: Numan Siddique <numans at ovn.org>
> > ---
>
> Looks good to me.
>
> Acked-by: Dumitru Ceara <dceara at redhat.com>
>

Thanks Dumitru for the review. I applied this patch to master and
branch-20.09.

Numan


>
> Thanks,
> Dumitru
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
>


More information about the dev mailing list