]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ena: fix building in-kernel driver
authorArtur Rojek <ar@semihalf.com>
Thu, 16 Sep 2021 12:14:54 +0000 (14:14 +0200)
committerMarcin Wojtas <mw@FreeBSD.org>
Thu, 16 Sep 2021 14:47:45 +0000 (16:47 +0200)
commita3f0d18237bdcf272461d3b4b682de384c572144
tree5b952ce3e2c194cf46db8b841e914bf1498a1474
parenteb3148cc4d256c20b5c7c9052539139b6f57f58b
ena: fix building in-kernel driver

When building ENA as compiled into the kernel, the driver would fail to
build. Resolve the problem by introducing the following changes:
1. Add missing `ena_rss.c` entry in `sys/conf/files`.
2. Prevent SYSCTL_ADD_INT from throwing an assert due to an extra
CTLTYPE_INT flag.

Fixes: 986e7b92276 ("ena: Move RSS logic into its own source files")
Fixes: 6d1ef2abd33 ("ena: Implement full RSS reconfiguration")
Obtained from: Semihalf
Sponsored by: Amazon, Inc.
MFC after: 1 week
sys/conf/files
sys/dev/ena/ena_sysctl.c