On 10 November 2015 at 08:18, Pravin B Shelar <pshe...@nicira.com> wrote:
> Remove unnecessary check and definition of inet_get_local_port_range.
> It is already there in ip.h
>
> Reported-by: Joe Stringer <joestrin...@nicira.com>
> Signed-off-by: Pravin B Shelar <pshe...@nicira.com>

Did you try this on RHEL7?

Our net/ip.h defines a 3-argument version of the function. But RHEL7
net/udp.h uses the 2-argument version. So, we need to make sure that
we don't redefine it while including net/udp.h.

AFAICT, currently any files that include net/udp.h also include
net/ip.h first so this logic works correctly. I suspect that the
lwtunnel backport introduced something which did not include net/ip.h
first, so the #undef logic is a no-op and the net/udp.h header would
fail. The patch that I sent would always include net/ip.h first, so
this logic would trigger and undefine our backport for the include of
net/udp.h, then redefine it once that was done.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to