From e2621d96576923849ce50cc29fccb07ce9a63088 Mon Sep 17 00:00:00 2001 From: Matt Macy Date: Fri, 3 May 2019 20:05:31 +0000 Subject: Allow iflib drivers to pass a pointer to their own ifmedia structure. Tested by: emaste@ Differential Revision: https://reviews.freebsd.org/D19946 --- sys/net/iflib.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/net/iflib.h') diff --git a/sys/net/iflib.h b/sys/net/iflib.h index f718922e0466..6b33330c035a 100644 --- a/sys/net/iflib.h +++ b/sys/net/iflib.h @@ -228,8 +228,10 @@ typedef struct if_softc_ctx { pci_vendor_info_t isc_vendor_info; /* set by iflib prior to attach_pre */ int isc_disable_msix; if_txrx_t isc_txrx; + struct ifmedia *isc_media; } *if_softc_ctx_t; + /* * Initialization values for device */ @@ -361,6 +363,10 @@ typedef enum { * Interface needs admin task to ignore interface up/down status */ #define IFLIB_ADMIN_ALWAYS_RUN 0x10000 +/* + * Driver will pass the media + */ +#define IFLIB_DRIVER_MEDIA 0x20000 /* -- cgit v1.2.3