From nobody Mon Jun 12 15:14:33 2023 X-Original-To: dev-commits-ports-main@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 4QfwG157Q8z4cf6j; Mon, 12 Jun 2023 15:14:33 +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 4QfwG14DHSz4R2M; Mon, 12 Jun 2023 15:14:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686582873; 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=xX+D6sAsSXTQB1sO3JBuBbhjEEHY/o0WWkvYbWiy3JA=; b=KejVDh8vajwdglj3tbVsfYEUpanmosK8FNLFPHH4jTI4HS/NyDCaXBIsdC5814bI9O8H3b acLGsAyD04mLnIpNi6u1Xv4pBSo7m2ttekvzjxXSDBhinhmf29MPV+t6jZOf6Pt7Vk06EC FtdOjPdfQTrOcWWIPt9vhkOLIMJzwXlApXpgCMjtl4pCRdQnwd+I8QH5Wqrb966owaxDQX xTsVRv/Ut/vKf8NQ2Kp3FNzUielj0kiL8O+a15FJZ56dAYQs7/KSb2TVMLRMnBMAwUaHbq +G5M8VgwhGIDcV+3mo/sWkZZiAzfO1uFF6Y4F37+aLnuWRtAbSbgCBqFEkks6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686582873; 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=xX+D6sAsSXTQB1sO3JBuBbhjEEHY/o0WWkvYbWiy3JA=; b=xOhU5TSi8rARyA1tLyR0jeuueo+JTzg2STLxnkTGZODWW+Eu+IPVSg/+7rTAkZ3bPaeg6X KJlU5h6w32ER8W4fzTiscXC6vHkgDWNKTihG2O7lUv1x+T2qw5m3oqk+HEToiENMnXub7T N42Sd9dbpK4A9fBTr94cUZbMptMddpTP+jq7p2rM1/EKfcY7ataq5+WvJ8hcc9HXygJreD 5ubGatA56JHY8+c2apVPbSKJ9TQWqd+0TM/LvfpIAukHHKUy26D53oSXquHmu17rHzfo4w 6H5t9XGPRzNE2vK+ti3cF+MHumUl/jfeK02J+hLHUKySgxH0Me7bTyfEYFQG9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686582873; a=rsa-sha256; cv=none; b=prHCNwLo896G/x9NdND02Q7xT6VPHkITJD6ITL7o0pBOT5a6avtNCwdjAnVVSqYVGw33uF RrctWzwiROFEdKMTRiLzRrnb5csogxWro0bq7G9cyrvh0LcFZP+V1l3kmzbm0/fegC0AmR LqIS1XBiySWM5cvpU6yWisNucm+5jHkdnbeFnd8dx9AXDt+soA3ZLoQ90G5ktz2E/nexjm RL+qr+vBru/aD04K6ecGqX9yimcpDbuu26bWDr0Y71S3B2MBBRFQL6BN+Ta23IMlZCdSz8 LVCStY42SzUiBGwVq3sCckfe7V9XSw/nsF5jMZWzcfqQ8YkjGQb77KwWJbF7Pw== 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 4QfwG13KW8zksh; Mon, 12 Jun 2023 15:14:33 +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 35CFEX2X029835; Mon, 12 Jun 2023 15:14:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35CFEXIG029834; Mon, 12 Jun 2023 15:14:33 GMT (envelope-from git) Date: Mon, 12 Jun 2023 15:14:33 GMT Message-Id: <202306121514.35CFEXIG029834@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: b172a2c10e21 - main - net/intel-ice-kmod: add a port for Intel 100G driver List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b172a2c10e21c0881b48e0d4a7ca80ca83ca93dd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=b172a2c10e21c0881b48e0d4a7ca80ca83ca93dd commit b172a2c10e21c0881b48e0d4a7ca80ca83ca93dd Author: Piotr Kubaj AuthorDate: 2023-06-12 15:13:33 +0000 Commit: Piotr Kubaj CommitDate: 2023-06-12 15:14:21 +0000 net/intel-ice-kmod: add a port for Intel 100G driver --- net/Makefile | 1 + net/intel-ice-kmod/Makefile | 23 +++++++++++++++++++++++ net/intel-ice-kmod/distinfo | 3 +++ net/intel-ice-kmod/files/patch-if__ice__iflib.c | 15 +++++++++++++++ net/intel-ice-kmod/pkg-descr | 5 +++++ net/intel-ixl-kmod/Makefile | 2 +- 6 files changed, 48 insertions(+), 1 deletion(-) diff --git a/net/Makefile b/net/Makefile index b055b2dca592..c39e28085fe8 100644 --- a/net/Makefile +++ b/net/Makefile @@ -276,6 +276,7 @@ SUBDIR += imapproxy SUBDIR += incidenceeditor SUBDIR += intel-em-kmod + SUBDIR += intel-ice-kmod SUBDIR += intel-igb-kmod SUBDIR += intel-ix-kmod SUBDIR += intel-ixl-kmod diff --git a/net/intel-ice-kmod/Makefile b/net/intel-ice-kmod/Makefile new file mode 100644 index 000000000000..b130e9f67c95 --- /dev/null +++ b/net/intel-ice-kmod/Makefile @@ -0,0 +1,23 @@ +PORTNAME= ice +PORTVERSION= 1.37.11 +PORTEPOCH= 0 +MASTER_SITES?= https://downloadmirror.intel.com/772531/ + +MAINTAINER= freebsd@intel.com +COMMENT= IntelĀ® Network Adapter Driver for E810 Series Devices + +MANPAGENAME= ice +MANPAGELINKS= if_ice + +MASTERDIR= ${.CURDIR}/../intel-ixl-kmod +PATCHDIR= ${.CURDIR}/files +PKGDIR= ${.CURDIR} +DISTINFO_FILE= ${.CURDIR}/distinfo +WRKSRC_SUBDIR= + +OPTIONS_DEFINE= SRIOV +SRIOV_DESC= Enable SR-IOV support (experimental) +SRIOV_MAKE_ENV= SRIOV_ENABLE=1 +SRIOV_MAKE_ENV_OFF= SRIOV_ENABLE=0 + +.include "${MASTERDIR}/Makefile" diff --git a/net/intel-ice-kmod/distinfo b/net/intel-ice-kmod/distinfo new file mode 100644 index 000000000000..fd2db4b388a5 --- /dev/null +++ b/net/intel-ice-kmod/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1686582215 +SHA256 (ice-1.37.11.tar.gz) = 628675f6a5a4b72746365a8efb11b7758f781e8541f3de3ae47468b673e9c1f3 +SIZE (ice-1.37.11.tar.gz) = 578969 diff --git a/net/intel-ice-kmod/files/patch-if__ice__iflib.c b/net/intel-ice-kmod/files/patch-if__ice__iflib.c new file mode 100644 index 000000000000..c707afff4120 --- /dev/null +++ b/net/intel-ice-kmod/files/patch-if__ice__iflib.c @@ -0,0 +1,15 @@ +--- if_ice_iflib.c.orig 2023-06-12 15:11:11 UTC ++++ if_ice_iflib.c +@@ -287,8 +287,12 @@ static struct if_shared_ctx ice_sctx = { + * + * device class used to setup the ice driver module kobject class. + */ ++#if __FreeBSD_version >= 1400058 ++DRIVER_MODULE(ice, pci, ice_driver, ice_module_event_handler, 0); ++#else + devclass_t ice_devclass; + DRIVER_MODULE(ice, pci, ice_driver, ice_devclass, ice_module_event_handler, 0); ++#endif + + MODULE_VERSION(ice, 1); + MODULE_DEPEND(ice, pci, 1, 1, 1); diff --git a/net/intel-ice-kmod/pkg-descr b/net/intel-ice-kmod/pkg-descr new file mode 100644 index 000000000000..859a6feaa28b --- /dev/null +++ b/net/intel-ice-kmod/pkg-descr @@ -0,0 +1,5 @@ +This release includes the 10 gigabit FreeBSD*-based driver for Intel(R) Network +Connections. + +The ix driver supports all 10 gigabit network connections based on +82599, 82598EB, X520, X540, and X550 series controllers. diff --git a/net/intel-ixl-kmod/Makefile b/net/intel-ixl-kmod/Makefile index 423ee68cd4ba..8b23ac4fbb56 100644 --- a/net/intel-ixl-kmod/Makefile +++ b/net/intel-ixl-kmod/Makefile @@ -27,7 +27,7 @@ NETMAP_OFF_DESC= Disable netmap(4) support unconditionally NETMAP_ON_CFLAGS= -DDEV_NETMAP NETMAP_OFF_CFLAGS= -UDEV_NETMAP -WRKSRC_SUBDIR= src +WRKSRC_SUBDIR?= src SUB_FILES= pkg-message SUB_LIST= PORTNAME=${PORTNAME}