From nobody Tue Jan 24 20:48:18 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P1fFG6L0Wz3bSkK; Tue, 24 Jan 2023 20:48:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P1fFG4cLQz41xH; Tue, 24 Jan 2023 20:48:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674593298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YSQzP5/8DIm+HUmWdwqsPR+2KY0DYdMb2sMDp+pgU/M=; b=npCOVHen3W2TgRlBf7LRFjrtZ6M/BaiXIeLSzGcu5t1RqJotBPb0ShrIHZSKJGfUQJFcbf l0tcukMwR0znssEDLYz16VgjMeZYZd/p7vLr/GA2g/WSh0XFYoSB2/HghphxJbpk2y8OAP p7ksZqgZv5xqWIfgJuvKvIz7IbZhH6SsyM4XiBovJaPGU9ZpabEzaYTJrCcBQjYpe1t8sn K2V1nbVbuEpfkouGrBaBOxDkCcj7GepQW13M+yb75W72WlDxUb4gUtlzqMxnOXBo0ltnuz x9KeAP3ChWz3wkuiPBibNDCOlMQ0KMsVvCmPPmnwzWUAXlbZQAJh5vNQ4RKv7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674593298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YSQzP5/8DIm+HUmWdwqsPR+2KY0DYdMb2sMDp+pgU/M=; b=FfA54ZqnfKDQvpNL7PHcXy7annEnZbfT7OB7efvjg3ee4j/mXZBikdZNZKpfRD2FejGQja aSOkPxt55azy7hwmV9fGlJhsRXdvSRabCN9O3KdIhzbdv4/XZpaDO/AvzRF+xUZD/uK7AY qkTtNy2tdttD9FUuMifM9Rx63wYdWUutdggE+26cad3KUJQ88i7hnzLdSrS9zWSQaTVGxk ZCFMYLsEENX5CXf6U90KcQ/jhhUsTqs+l9dN8KkyRjKIgNL5ulBDn5TqvhR7HjAI+CNw3Q hNVr4+9d6LGggpDgRPC3h5fL7/0Kq5xDtbJsem//AHdQhYO7I2h9onONCrCnkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674593298; a=rsa-sha256; cv=none; b=WZOKTWfDUll3rrz9W1klE7IC0G8cUziqRGmrOrKCMZD+aCEAks8HTbgvbM/YN0Wx9JVT+C 8xo2epFj6/ZtgRjQJbeIA2fr/9LABAkPb9jeoTtt9uzcU+ZsswDHvI24HTGiNwdH3t6hxQ J/kykLBgvW+oCIggfjR6cyw0FYHi/Ygg47akjvIy7aQguQ7P15EJKPmbT7lnTPt7okf1f/ wAr7isJADdPzaeMYh6wf20hU+J0TsJ1YRVzSJ8mYLJ4UXPpBiwm5YuQw9sA070C4G5+IFj XK9IKRy+99W7SSiIe8V3+Rq4+7H63HFi9byooXxQwirvAGq3z4lBPMeng0vAnw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P1fFG3BPxzN8D; Tue, 24 Jan 2023 20:48:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30OKmIXQ053769; Tue, 24 Jan 2023 20:48:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OKmIBs053768; Tue, 24 Jan 2023 20:48:18 GMT (envelope-from git) Date: Tue, 24 Jan 2023 20:48:18 GMT Message-Id: <202301242048.30OKmIBs053768@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 8680326022e5 - main - Mechanically convert ixl(4) to IfAPI List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8680326022e5127c797b6d670d6cd63a7688a693 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=8680326022e5127c797b6d670d6cd63a7688a693 commit 8680326022e5127c797b6d670d6cd63a7688a693 Author: Justin Hibbits AuthorDate: 2022-08-19 15:54:42 +0000 Commit: Justin Hibbits 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 *);