git: 8680326022e5 - main - Mechanically convert ixl(4) to IfAPI
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 20:48:18 UTC
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=8680326022e5127c797b6d670d6cd63a7688a693 commit 8680326022e5127c797b6d670d6cd63a7688a693 Author: Justin Hibbits <jhibbits@FreeBSD.org> AuthorDate: 2022-08-19 15:54:42 +0000 Commit: Justin Hibbits <jhibbits@FreeBSD.org> CommitDate: 2023-01-24 19:36:29 +0000 Mechanically convert ixl(4) to IfAPI Reviewed by: erj Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37857 --- sys/dev/ixl/ixl_iw.h | 2 +- sys/dev/ixl/ixl_pf.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/dev/ixl/ixl_iw.h b/sys/dev/ixl/ixl_iw.h index 2ef7198a6020..f0abb281b12d 100644 --- a/sys/dev/ixl/ixl_iw.h +++ b/sys/dev/ixl/ixl_iw.h @@ -52,7 +52,7 @@ struct ixl_iw_msix { struct ixl_iw_pf { void *handle; - struct ifnet *ifp; + if_t ifp; device_t dev; struct resource *pci_mem; u8 pf_id; diff --git a/sys/dev/ixl/ixl_pf.h b/sys/dev/ixl/ixl_pf.h index 888949245133..0b95cdd1bd4b 100644 --- a/sys/dev/ixl/ixl_pf.h +++ b/sys/dev/ixl/ixl_pf.h @@ -290,8 +290,8 @@ void ixl_print_nvm_cmd(device_t, struct i40e_nvm_access *); void ixl_handle_que(void *context, int pending); void ixl_init(void *); -void ixl_register_vlan(void *, struct ifnet *, u16); -void ixl_unregister_vlan(void *, struct ifnet *, u16); +void ixl_register_vlan(void *, if_t, u16); +void ixl_unregister_vlan(void *, if_t, u16); int ixl_intr(void *); int ixl_msix_que(void *); int ixl_msix_adminq(void *); @@ -302,9 +302,9 @@ const char * ixl_switch_res_type_string(u8); void ixl_add_sysctls_mac_stats(struct sysctl_ctx_list *, struct sysctl_oid_list *, struct i40e_hw_port_stats *); -void ixl_media_status(struct ifnet *, struct ifmediareq *); -int ixl_media_change(struct ifnet *); -int ixl_ioctl(struct ifnet *, u_long, caddr_t); +void ixl_media_status(if_t, struct ifmediareq *); +int ixl_media_change(if_t); +int ixl_ioctl(if_t, u_long, caddr_t); void ixl_enable_queue(struct i40e_hw *, int); void ixl_disable_queue(struct i40e_hw *, int); @@ -388,7 +388,7 @@ int ixl_enable_rx_ring(struct ixl_pf *, struct ixl_pf_qtag *, u16); int ixl_enable_ring(struct ixl_pf *pf, struct ixl_pf_qtag *, u16); void ixl_update_eth_stats(struct ixl_vsi *); -void ixl_cap_txcsum_tso(struct ixl_vsi *, struct ifnet *, int); +void ixl_cap_txcsum_tso(struct ixl_vsi *, if_t, int); int ixl_initialize_vsi(struct ixl_vsi *); void ixl_add_ifmedia(struct ifmedia *, u64); int ixl_setup_queue_msix(struct ixl_vsi *);