Fail to build Linux kernel module with kernel upper than 4.10

Bug #1696745 reported by Jakub Pavlik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Sergey Matov

Bug Description

On updated Ubuntu Xenial, the kernel module fails to build:

DKMS make.log for vrouter-3.1.1.x~20170607080819 for kernel 4.10.0-22-lowlatency (x86_64)
Thu Jun 8 12:05:34 UTC 2017
make: Entering directory '/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build'
make -C /lib/modules/4.10.0-22-lowlatency/build M=/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-22-lowlatency'
  CC [M] /var/lib/dkms/vrouter/3.1.1.x~20170607080819/build/linux/vr_genetlink.o
/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build/linux/vr_genetlink.c:33:21: error: 'GENL_ID_GENERATE' undeclared here (not in a function)
     .id = GENL_ID_GENERATE,
                     ^
/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build/linux/vr_genetlink.c: In function 'vr_genetlink_init':
/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build/linux/vr_genetlink.c:184:12: error: implicit declaration of function 'genl_register_family_with_ops' [-Werror=implicit-function-declaration]
     return genl_register_family_with_ops(&vrouter_genl_family,
            ^
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build/linux/vr_genetlink.o' failed
make[2]: *** [/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build/linux/vr_genetlink.o] Error 1
Makefile:1524: recipe for target '_module_/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build' failed
make[1]: *** [_module_/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-22-lowlatency'
Makefile:87: recipe for target 'default' failed
make: *** [default] Error 2
make: Leaving directory '/var/lib/dkms/vrouter/3.1.1.x~20170607080819/build'

Tags: vrouter
information type: Proprietary → Public
Changed in juniperopenstack:
assignee: nobody → Jakub Pavlik (pavlk-jakub)
Sergey Matov (smatov)
Changed in juniperopenstack:
assignee: Jakub Pavlik (pavlk-jakub) → Sergey Matov (smatov)
Jeba Paulaiyan (jebap)
Changed in juniperopenstack:
milestone: none → r4.1.0.0-fcs
tags: added: vrouter
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/32739
Submitter: Sergey Matov (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/32739
Submitter: Sergey Kreys (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/32739
Committed: http://github.com/Juniper/contrail-vrouter/commit/b94fd62dd475f1623091ea5de778d5448acd1a6a
Submitter: Zuul (<email address hidden>)
Branch: master

commit b94fd62dd475f1623091ea5de778d5448acd1a6a
Author: Sergey Matov <email address hidden>
Date: Thu Jun 8 17:34:23 2017 +0400

Modify generic netlink family registration for kernel 4.10 support
Closes-bug: #1696745

Change-Id: I48ea11f1fec66669b8892fb2659ad73648946bc6

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/34482
Submitter: Sergey Kreys (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/34482
Committed: http://github.com/Juniper/contrail-vrouter/commit/46e29729201c8c15525c9b425d0a43360d57aaaa
Submitter: Zuul (<email address hidden>)
Branch: master

commit 46e29729201c8c15525c9b425d0a43360d57aaaa
Author: Sergey Kreys <email address hidden>
Date: Fri Aug 11 16:10:09 2017 +0300

Fix netlink family registration for kernel 4.10

When we call genl_register_family with "ops" field provided,
we need to provide "n_ops" field as well.

Change-Id: Ide0c4e8e3f5f2a5689ab7a49f97f5c28befa665a
Closes-bug: #1696745

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/48847
Submitter: Saurabh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/48847
Committed: http://github.com/Juniper/contrail-vrouter/commit/436c78db6872aa9c4d682004ef445f73cbd15129
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit 436c78db6872aa9c4d682004ef445f73cbd15129
Author: Kiran KN <email address hidden>
Date: Wed Nov 9 11:38:22 2016 -0800

Changes to support Ubuntu 16.04 v4.15 kernel.

DPDK: Ubuntu 16.04 compilation fix

Partial-Bug: 1638643

Changes to make vrouter code compile against linux kernel v4.15. Timer_list
structure has changed in 4.15 releases. Also some changes introduced to
vr_host_interface.c, removing NETIF_F_UFO reference for v4.15.

closes-bug: #1765229

Fix vrouter build for kernels from 4.11 to 4.13

- linux/vhost_dev.c:
Rename netdev destructor to priv_destructor due to API change.
New signature of rtnl_link_ops.validate due to API change.
- linux/vr_mem.c
Remove vma from mem_fault function since VMA pointer now accessable
via VMF structure.

Partial-Bug: #1633387
(cherry picked from commit 60c903128ddee5737e0fd8bb34fc6f03cc043426)

Modify generic netlink family registration for kernel 4.10 support
Closes-bug: #1696745

Fix netlink family registration for kernel 4.10

When we call genl_register_family with "ops" field provided,
we need to provide "n_ops" field as well.

Closes-bug: #1696745

Register information about multicast group

Pass to vrouter module information about multicast group. Withouth that
user space client (vif) was unable to join vrouter netlink broadcast group
when kernel 4.10 or higher was used.

Closes-Bug: #1771999

Change-Id: I7d01633fca50a3c76ce1ea9d9233623e4a2abd45
Closes Jira Bug:JCB-218796

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.