Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151175122
D20221.id58057.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1021 B
Referenced Files
None
Subscribers
None
D20221.id58057.diff
View Options
Index: head/sys/net/iflib.h
===================================================================
--- head/sys/net/iflib.h
+++ head/sys/net/iflib.h
@@ -399,6 +399,13 @@
int iflib_device_resume(device_t);
int iflib_device_shutdown(device_t);
+/*
+ * Use this instead of iflib_device_probe if the driver should report
+ * BUS_PROBE_VENDOR instead of BUS_PROBE_DEFAULT. (For example, an out-of-tree
+ * driver based on iflib).
+ */
+int iflib_device_probe_vendor(device_t);
+
int iflib_device_iov_init(device_t, uint16_t, const nvlist_t *);
void iflib_device_iov_uninit(device_t);
Index: head/sys/net/iflib.c
===================================================================
--- head/sys/net/iflib.c
+++ head/sys/net/iflib.c
@@ -4377,6 +4377,18 @@
return (ENXIO);
}
+int
+iflib_device_probe_vendor(device_t dev)
+{
+ int probe;
+
+ probe = iflib_device_probe(dev);
+ if (probe == BUS_PROBE_DEFAULT)
+ return (BUS_PROBE_VENDOR);
+ else
+ return (probe);
+}
+
static void
iflib_reset_qvalues(if_ctx_t ctx)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 2:43 PM (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31037711
Default Alt Text
D20221.id58057.diff (1021 B)
Attached To
Mode
D20221: iflib: provide probe wrapper for vendor drivers
Attached
Detach File
Event Timeline
Log In to Comment