]> git.proxmox.com Git - ovs.git/commit
rhel7.6: Support kmod build and load for mulitple kernel versions
authorYifeng Sun <pkusunyifeng@gmail.com>
Fri, 31 May 2019 21:58:09 +0000 (14:58 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 5 Jun 2019 20:21:27 +0000 (13:21 -0700)
commit52d12cc4590d5b95505a21d3508586db3bb35d07
treed9add6756816a7ae00bcbb13ce5af74eeed09229
parent81b2442261371f4e72b257dea184010e752501d1
rhel7.6: Support kmod build and load for mulitple kernel versions

RHEL 7.6's new kernel 3.10.0-957.12.1.el7 introduced some ABI changes.
This leads to an issue that OVS kernel module built against
kernels newer than 12.1 cannot be loaded on systems running kernels
older than 12.1, vice versa.

By inspecting datapath/linux/openvswitch.mod.c, signatures of
the following kernel functions have changed in 3.10.0-957.12.1.el7:
    nf_ct_get_tuple
    nf_ct_invert_tuplepr
    __nf_ct_l4proto_find

This patch enables OVS to build kernel modules against multiple
kernel versions and enables RHEL 7.6 system to load the compatible
module at runtime.

make rpm-fedora-kmod \
    RPMBUILD_OPT='-D "kversion 3.10.0-957.10.1.el7.x86_64 \
    3.10.0-957.12.1.el7.x86_64"'

Acked-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
rhel/openvswitch-kmod-fedora.spec.in
rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh