[ovs-dev] [PATCH] kbuild: Include external modules compile flags

Gregory Rose gvrose8192 at gmail.com
Fri Feb 21 18:07:29 UTC 2020


On 2/21/2020 9:43 AM, David Ahern wrote:
> On 2/5/20 3:48 PM, Gregory Rose wrote:
>> I found a way to make this work on the openvswitch out of tree kernel
>> module.  KCFLAGS
>> doesn't work because it is added at the end of the gcc command line and
>> we need to
>> add a '-include <file>' directive so that the include file comes
>> *before* all other include
>> files.  I fix this by inserting the '-include <file>' command line
>> option to the beginning
>> of our own Kbuild NOSTDINC variable.
> Hi Greg:
>
> Thanks for chasing this down. Are you going to commit the change to ovs
> master?

Hi David,

I have a patch set ready to go to add support for kernels all the way up 
to 5.5
however OVS is broken on kernels from 5.2 on up.  All of our netlink nested
messages are failing with -EINVAL return from nla_parse_nested().  I am
looking into why this is occurring .  There were some changes around
use of the netlink policy and I think the issues I'm seeing might be 
related.
Specifically the policy field from the genl_ops structure was removed and
I think that might be the problem.

When I have a resolution for that issue I'll be posting my patches. I'll 
keep
you in the loop.

Thanks,

- Greg

>
> Thanks,
> David
>



More information about the dev mailing list