aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ice/ice_features.h
diff options
context:
space:
mode:
authorKrzysztof Galazka <krzysztof.galazka@intel.com>2025-01-15 23:21:04 +0000
committerWarner Losh <imp@FreeBSD.org>2025-07-18 19:16:16 +0000
commitbc761988b724587fe9ed5b99858b05ef842243ac (patch)
tree250c8ec23cf1e84a4f1819757663730115f7a46d /sys/dev/ice/ice_features.h
parent7986051313507636e7bd971e9db03dce8d723e32 (diff)
ice: Add host SR-IOV support
Enable basic SR-IOV support for E800 adapters. Authored-by: Eric Joyner <erj@FreeBSD.org> Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
Diffstat (limited to 'sys/dev/ice/ice_features.h')
-rw-r--r--sys/dev/ice/ice_features.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ice/ice_features.h b/sys/dev/ice/ice_features.h
index 821abe4806ca..5b23757b1c98 100644
--- a/sys/dev/ice/ice_features.h
+++ b/sys/dev/ice/ice_features.h
@@ -91,7 +91,9 @@ enum feat_list {
static inline void
ice_disable_unsupported_features(ice_bitmap_t __unused *bitmap)
{
+#ifndef PCI_IOV
ice_clear_bit(ICE_FEATURE_SRIOV, bitmap);
+#endif
#ifndef DEV_NETMAP
ice_clear_bit(ICE_FEATURE_NETMAP, bitmap);
#endif