[ovs-dev] [PATCH] datapath: Linux 4.9 compat.

Joe Stringer joe at ovn.org
Fri Dec 9 22:47:45 UTC 2016


On 7 December 2016 at 16:31, Jarno Rajahalme <jarno at ovn.org> wrote:
> This patch allows openvswitch kernel module in the OVS tree to be
> compiled against the current net-next Linux kernel.  The changes are
> due to these upstream commits:
>
> 56989f6d856 ("genetlink: mark families as __ro_after_init")
> 489111e5c25 ("genetlink: statically initialize families")
> a07ea4d9941 ("genetlink: no longer support using static family IDs")
>
> struct genl_family initialization is changed be completely static and
> to include the new (in Linux 4.6) __ro_after_init attribute.  Compat
> code defines it as an empty macro if not defined already.
>
> GENL_ID_GENERATE is no longer defined, but since it was defined as 0,
> it is safe to drop it from all initializers also on older Linux
> versions.
>
> Tested with current Linux net-next (4.9) and 3.16.
>
> Signed-off-by: Jarno Rajahalme <jarno at ovn.org>

Looks like others are happy with the change, I just had one question
(I mentioned offline) about whether we are now synchronised between
ovs tree datapath module and upstream v4.9 module code?


More information about the dev mailing list