From nobody Tue Sep 05 07:18:53 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 4Rfxgy1DsTz4sSWT; Tue, 5 Sep 2023 07:18:54 +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 4Rfxgy0mdhz4Lvg; Tue, 5 Sep 2023 07:18:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693898334; 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=rcFx3tHQWwfcKvO0qWtFziKev8MW5XrqM2TVQ/ZMGlM=; b=qnNNLdzjk+Gkmu29SMtEDSwu9W70F2JRM4qwGra+F3UacmMPk1snm5bhvtkTGDCRe6FqGz Lpgdu4pytrrWuAUMBuiDLDPRVu3yEtKFI/JPo9DOcDGGaaTfjcRfNVdirrHSzUpH8w9eL4 0GwYEaztk9BnjYKi0HXFmEVVh7Lrdbt4+YJIoNjIL+4gBZrUo6N83NotPQL99lYuswth2o 1olsL/9dUUii2gXxyFxuiltXvPUyLiZnNT2sghI+J1rRvjTmfq0t4iuwowygOPx1nWLcYv Zi5q/mzvymRNDJLWoawf+ojQqkRsZLAV+Oe+HyMzaG2Zpjcuk/EHSCv5SfjgHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693898334; a=rsa-sha256; cv=none; b=h5qoLjccbo3p2xVUUKZ3jQBBJZnk05XmhnlK2TnK7ldtTI85zbKRTx2FX7xB/2qSAlemaP VqndFnfvh1vK35HY14dgfGmyA+eOPwqmUzogMKyNhtFCHAQOnyoexIgAEVpsxIbTVNhPH2 ZpskVhsLyotn3x1Jz1SP5N5FmDbetvyiRggCQrVAWGkzhxfrnQYpBuPzylAyM+22aspljK OxTGHJfw2DPl1x74/9Z0YRJyhr7MnvsukyTwBd1p1C2VnZKGqGEiyCcGFFu/6POKEC9EC/ VhPnLt+WGCH795MzhdivSb1c2eb4VnW4TiRk19CCFkun9o+1VBC+QK4KsQdhcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693898334; 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=rcFx3tHQWwfcKvO0qWtFziKev8MW5XrqM2TVQ/ZMGlM=; b=K/yaT5e7zFp0FUvVinmTb2N/bICix0FR+41mQUTH7bq4v6hXcg+Qow0r0mpfXAYI2hL2jQ /QuJrs3UBsk9MtsRS3XO7Up7Dr0cSFKfbflHeUZVZsh98Tf0V6LqW30j7UZqhfTxyot3kI xKTyTJNKIodeG/pp/oGD27hwf76WdGj37Kd1eEs20JSKb2akUpXr50IVpv11wx7J42RnKv g46M7Ci2ZyVd4B21QOn+BfpXnhOF/npGIf+bRGDrd3yKPavO4ex+y5VijgY7a4rrjW6IYU 0YY4kt7ZVbuLDuxYGLdBvmARhFQKCo6jKr3jBF+6qnuubVFjEEofqYVeKrSjpA== 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 4Rfxgx6qhKz8x7; Tue, 5 Sep 2023 07:18:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3857IrMl065134; Tue, 5 Sep 2023 07:18:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3857IrkF065131; Tue, 5 Sep 2023 07:18:53 GMT (envelope-from git) Date: Tue, 5 Sep 2023 07:18:53 GMT Message-Id: <202309050718.3857IrkF065131@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: 4d56f9f5a302 - main - net/isboot-kmod: Update to 0.2.15 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: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4d56f9f5a3028310ba84b7c985ec76e168a6a021 Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=4d56f9f5a3028310ba84b7c985ec76e168a6a021 commit 4d56f9f5a3028310ba84b7c985ec76e168a6a021 Author: John Nielsen AuthorDate: 2023-09-04 07:57:28 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2023-09-05 07:18:36 +0000 net/isboot-kmod: Update to 0.2.15 PR: 273552 Reported by: john@jnielsen.net (maintainer) --- net/isboot-kmod/Makefile | 3 +- net/isboot-kmod/distinfo | 6 +- net/isboot-kmod/files/patch-ibft.c | 86 ------------- net/isboot-kmod/files/patch-isboot.c | 17 --- net/isboot-kmod/files/patch-iscsi.c | 226 ----------------------------------- 5 files changed, 4 insertions(+), 334 deletions(-) diff --git a/net/isboot-kmod/Makefile b/net/isboot-kmod/Makefile index 335560346a87..99b3084f45cb 100644 --- a/net/isboot-kmod/Makefile +++ b/net/isboot-kmod/Makefile @@ -1,6 +1,5 @@ PORTNAME= isboot-kmod -DISTVERSION= 0.2.14 -PORTREVISION= 1 +DISTVERSION= 0.2.15 CATEGORIES= net MAINTAINER= john@jnielsen.net diff --git a/net/isboot-kmod/distinfo b/net/isboot-kmod/distinfo index 070f53b5314e..d98d7b8a17cf 100644 --- a/net/isboot-kmod/distinfo +++ b/net/isboot-kmod/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1621952121 -SHA256 (jnielsendotnet-isboot-0.2.14_GH0.tar.gz) = 6c5c9d17b97cf6ed977cda5d6f67409d68488cac768ba6202116a28f2decb2a2 -SIZE (jnielsendotnet-isboot-0.2.14_GH0.tar.gz) = 30628 +TIMESTAMP = 1693804462 +SHA256 (jnielsendotnet-isboot-0.2.15_GH0.tar.gz) = 40eb9d3f0668a8a1711bfa94493242788216d9245d6a4f31e4ae92daa2a36e5e +SIZE (jnielsendotnet-isboot-0.2.15_GH0.tar.gz) = 31181 diff --git a/net/isboot-kmod/files/patch-ibft.c b/net/isboot-kmod/files/patch-ibft.c deleted file mode 100644 index 0694466c7560..000000000000 --- a/net/isboot-kmod/files/patch-ibft.c +++ /dev/null @@ -1,86 +0,0 @@ ---- ibft.c.orig 2021-05-18 18:37:58 UTC -+++ ibft.c -@@ -146,13 +146,12 @@ ibft_print_address(uint8_t *addr) - void - ibft_print_address(uint8_t *addr) - { -- uint32_t n0, n1, n2, n3; -+ uint32_t n0, n1, n2; - - /* RFC2373 2.5.4 */ - n0 = be32toh(*(uint32_t *)(addr + 0)); - n1 = be32toh(*(uint32_t *)(addr + 4)); - n2 = be32toh(*(uint32_t *)(addr + 8)); -- n3 = be32toh(*(uint32_t *)(addr +12)); - if (n0 == 0 && n1 == 0 && n2 == 0x0000ffffU) { - /* IPv4-mapped IPv6 */ - printf("%d.%d.%d.%d", -@@ -188,7 +187,7 @@ ibft_parse_structure(uint8_t *ibft) - struct ibft_nic *n0h, *n1h; - struct ibft_target *t0h, *t1h; - char oemid[6+1], oemtableid[8+1]; -- int id, version, length, index, flags; -+ int id, length, index, flags; - int revision, checksum; - int name_length, name_offset; - int sum, i; -@@ -226,7 +225,6 @@ ibft_parse_structure(uint8_t *ibft) - /* Control Structure (18 bytes or more) */ - ch = (struct ibft_control *)(ibft + 48); - id = ch->id; -- version = ch->version; - length = le16toh(ch->length); - index = ch->index; - flags = ch->flags; -@@ -258,7 +256,6 @@ ibft_parse_structure(uint8_t *ibft) - if (ibft_initiator_offset != 0) { - ih = (struct ibft_initiator *)(ibft + ibft_initiator_offset); - id = ih->id; -- version = ih->version; - length = le16toh(ih->length); - index = ih->index; - flags = ih->flags; -@@ -307,7 +304,6 @@ ibft_parse_structure(uint8_t *ibft) - if (ibft_nic0_offset != 0) { - n0h = (struct ibft_nic *)(ibft + ibft_nic0_offset); - id = n0h->id; -- version = n0h->version; - length = le16toh(n0h->length); - index = n0h->index; - flags = n0h->flags; -@@ -396,7 +392,6 @@ ibft_parse_structure(uint8_t *ibft) - if (ibft_target0_offset != 0) { - t0h = (struct ibft_target *)(ibft + ibft_target0_offset); - id = t0h->id; -- version = t0h->version; - length = le16toh(t0h->length); - index = t0h->index; - flags = t0h->flags; -@@ -480,7 +475,6 @@ ibft_parse_structure(uint8_t *ibft) - if (ibft_nic1_offset != 0) { - n1h = (struct ibft_nic *)(ibft + ibft_nic1_offset); - id = n1h->id; -- version = n1h->version; - length = le16toh(n1h->length); - index = n1h->index; - flags = n1h->flags; -@@ -499,7 +493,6 @@ ibft_parse_structure(uint8_t *ibft) - if (ibft_target1_offset != 0) { - t1h = (struct ibft_target *)(ibft + ibft_target1_offset); - id = t1h->id; -- version = t1h->version; - length = le16toh(t1h->length); - index = t1h->index; - flags = t1h->flags; -@@ -556,7 +549,11 @@ ibft_init(void) - if (ibft_verbose) { - printf("iBFT error\n"); - } -+#if __FreeBSD_version >= 1400070 -+ pmap_unmapdev(vaddr, -+#else - pmap_unmapdev((vm_offset_t)vaddr, -+#endif - (vm_size_t)IBFT_HIGH_ADDR); - return (error); - } diff --git a/net/isboot-kmod/files/patch-isboot.c b/net/isboot-kmod/files/patch-isboot.c deleted file mode 100644 index 4ee628a1e4e9..000000000000 --- a/net/isboot-kmod/files/patch-isboot.c +++ /dev/null @@ -1,17 +0,0 @@ ---- isboot.c.orig 2022-05-11 20:13:59 UTC -+++ isboot.c -@@ -127,13 +127,12 @@ isboot_is_v4addr(uint8_t *addr) - int - isboot_is_v4addr(uint8_t *addr) - { -- uint32_t n0, n1, n2, n3; -+ uint32_t n0, n1, n2; - - /* RFC2373 2.5.4 */ - n0 = be32toh(*(uint32_t *)(addr + 0)); - n1 = be32toh(*(uint32_t *)(addr + 4)); - n2 = be32toh(*(uint32_t *)(addr + 8)); -- n3 = be32toh(*(uint32_t *)(addr +12)); - if (n0 == 0 && n1 == 0 && n2 == 0x0000ffffU) - return (1); /* IPv4-mapped IPv6 */ - else diff --git a/net/isboot-kmod/files/patch-iscsi.c b/net/isboot-kmod/files/patch-iscsi.c deleted file mode 100644 index ae5085681825..000000000000 --- a/net/isboot-kmod/files/patch-iscsi.c +++ /dev/null @@ -1,226 +0,0 @@ ---- iscsi.c.orig 2022-05-11 20:19:06 UTC -+++ iscsi.c -@@ -210,10 +210,12 @@ static struct isboot_sess isboot_g_sess; - #define ISBOOT_TRACE(...) do { printf(__VA_ARGS__); } while (0) - #define ISBOOT_TRACEDUMP(LABEL, BUF, LEN) \ - do { isboot_dump((LABEL), (BUF), (LEN)); } while (0) -+#define __trace_used - #else - #define ISBOOT_ERROR(...) do { printf(__VA_ARGS__); } while (0) - #define ISBOOT_TRACE(...) - #define ISBOOT_TRACEDUMP(LABEL, BUF, LEN) -+#define __trace_used __unused - #endif - - #ifdef ISBOOT_OPT_PREFERRED_HEADER_DIGEST -@@ -1179,13 +1181,11 @@ isboot_recv_pdu(struct isboot_sess *sess, pdu_t *pp) - struct uio uio; - uint8_t *bhs; - uint32_t crc32c; -- uint32_t total; - int error; - int flags; - int ahs_len, ds_len; - - memset(&uio, 0, sizeof(uio)); -- total = 0; - - /* BHS */ - flags = MSG_WAITALL; -@@ -1201,7 +1201,6 @@ isboot_recv_pdu(struct isboot_sess *sess, pdu_t *pp) - } - m_copydata(mp, 0, ISCSI_BHS_LEN, (caddr_t)&pp->ipdu.bhs); - m_freem(mp); -- total += ISCSI_BHS_LEN; - bhs = (uint8_t *)&pp->ipdu.bhs; - ahs_len = DGET8(&bhs[4]); - ahs_len *= 4; -@@ -1246,7 +1245,6 @@ isboot_recv_pdu(struct isboot_sess *sess, pdu_t *pp) - (caddr_t)pp->ahs_addr); - m_freem(mp); - pp->ahs_len = ahs_len; -- total += ISCSI_ALIGN(ahs_len); - } - - /* HD */ -@@ -1265,7 +1263,6 @@ isboot_recv_pdu(struct isboot_sess *sess, pdu_t *pp) - m_copydata(mp, 0, sizeof(pp->hdr_dig), - (caddr_t)&pp->hdr_dig); - m_freem(mp); -- total += sizeof(pp->hdr_dig); - } - - /* DATA */ -@@ -1285,7 +1282,6 @@ isboot_recv_pdu(struct isboot_sess *sess, pdu_t *pp) - (caddr_t)pp->ds_addr); - m_freem(mp); - pp->ds_len = ds_len; -- total += ISCSI_ALIGN(ds_len); - } - - /* DD */ -@@ -1304,7 +1300,6 @@ isboot_recv_pdu(struct isboot_sess *sess, pdu_t *pp) - m_copydata(mp, 0, sizeof(pp->ds_dig), - (caddr_t)&pp->ds_dig); - m_freem(mp); -- total += sizeof(pp->ds_dig); - } - - /* check digest */ -@@ -1579,7 +1574,7 @@ isboot_rsp_login(struct isboot_sess *sess, pdu_t *pp) - uint32_t ExpCmdSN, MaxCmdSN; - uint16_t tsih; - int T_bit; -- int CSG, NSG; -+ int NSG; - int StatusClass, StatusDetail; - int error; - -@@ -1597,7 +1592,6 @@ isboot_rsp_login(struct isboot_sess *sess, pdu_t *pp) - } - - T_bit = BGET8(&rsp[1], 7); -- CSG = BGET8W(&rsp[1], 3, 2); - NSG = BGET8W(&rsp[1], 1, 2); - tsih = DGET16(&rsp[14]); - -@@ -2200,10 +2194,7 @@ isboot_action(struct cam_sim *sim, union ccb *ccb) - static void - isboot_action(struct cam_sim *sim, union ccb *ccb) - { -- struct isboot_sess *sess; -- - ISBOOT_TRACE("isboot action %x\n", ccb->ccb_h.func_code); -- sess = (struct isboot_sess *)cam_sim_softc(sim); - - switch (ccb->ccb_h.func_code) { - case XPT_SCSI_IO: -@@ -2291,14 +2282,12 @@ isboot_poll(struct cam_sim *sim) - static void - isboot_poll(struct cam_sim *sim) - { -- struct isboot_sess *sess; - static int poll_out = 0; - - if (poll_out == 0) { - poll_out = 1; - ISBOOT_TRACE("isboot poll\n"); - } -- sess = (struct isboot_sess *)cam_sim_softc(sim); - /* called after crash dump */ - /* XXX need flush? */ - } -@@ -2681,14 +2670,13 @@ isboot_rsp_scsi(struct isboot_sess *sess, pdu_t *pp) - uint8_t *sp; - struct isboot_task *taskp; - union ccb *ccb; -- uint32_t ITT, SNT; -- uint32_t StatSN; -- uint32_t ExpCmdSN, MaxCmdSN; -- uint32_t ExpDataSN; -+ uint32_t ITT; -+ uint32_t StatSN __trace_used; -+ uint32_t ExpCmdSN __trace_used, MaxCmdSN __trace_used; -+ uint32_t ExpDataSN __trace_used; - int status, response; -- int o_bit, u_bit, O_bit, U_bit; -+ int o_bit __trace_used, u_bit __trace_used, O_bit, U_bit; - int residual; -- int bidi_residual; - int len, sense_len; - - ITT = DGET32(&rsp[16]); -@@ -2718,11 +2706,9 @@ isboot_rsp_scsi(struct isboot_sess *sess, pdu_t *pp) - mtx_unlock_spin(&sess->sn_mtx); - - ITT = DGET32(&rsp[16]); -- SNT = DGET32(&rsp[20]); - ExpCmdSN = DGET32(&rsp[28]); - MaxCmdSN = DGET32(&rsp[32]); - ExpDataSN = DGET32(&rsp[36]); -- bidi_residual = DGET32(&rsp[40]); - residual = DGET32(&rsp[44]); - - if (pp->ds_len > 2) { -@@ -2822,12 +2808,11 @@ isboot_rsp_read_data(struct isboot_sess *sess, pdu_t * - struct isboot_task *taskp; - union ccb *ccb; - uint8_t *data; -- uint32_t ITT, TTT; -- uint32_t StatSN; -- uint32_t ExpCmdSN, MaxCmdSN; -- uint32_t DataSN, ExpDataSN; -+ uint32_t ITT; -+ uint32_t StatSN __trace_used; -+ uint32_t ExpCmdSN __trace_used, MaxCmdSN __trace_used; -+ uint32_t DataSN __trace_used, ExpDataSN; - uint32_t TL; -- int error; - int offset; - int status, response; - int len; -@@ -2856,7 +2841,6 @@ isboot_rsp_read_data(struct isboot_sess *sess, pdu_t * - len = pp->ds_len; - status = 0; - response = 0; -- error = 0; - - F_bit = BGET8(&rsp[1], 7); - S_bit = BGET8(&rsp[1], 0); -@@ -2877,7 +2861,6 @@ isboot_rsp_read_data(struct isboot_sess *sess, pdu_t * - StatSN = 0; - } - ITT = DGET32(&rsp[16]); -- TTT = DGET32(&rsp[20]); - ExpCmdSN = DGET32(&rsp[28]); - MaxCmdSN = DGET32(&rsp[32]); - DataSN = DGET32(&rsp[36]); -@@ -2975,9 +2958,8 @@ isboot_rsp_r2t(struct isboot_sess *sess, pdu_t *pp) - uint8_t *data; - uint64_t LUN; - uint32_t ITT, TTT; -- uint32_t R2TSN; - uint32_t StatSN; -- uint32_t ExpCmdSN, MaxCmdSN; -+ uint32_t ExpCmdSN __trace_used, MaxCmdSN __trace_used; - uint32_t DataSN; - uint32_t TL; - int error; -@@ -3013,7 +2995,6 @@ isboot_rsp_r2t(struct isboot_sess *sess, pdu_t *pp) - TTT = DGET32(&rsp[20]); - ExpCmdSN = DGET32(&rsp[28]); - MaxCmdSN = DGET32(&rsp[32]); -- R2TSN = DGET32(&rsp[36]); - offset = DGET32(&rsp[40]); - len = DGET32(&rsp[44]); - -@@ -3123,12 +3104,10 @@ isboot_rsp_nopin(struct isboot_sess *sess, pdu_t *pp) - isboot_rsp_nopin(struct isboot_sess *sess, pdu_t *pp) - { - uint8_t *rsp = (uint8_t *)&pp->ipdu.bhs; -- uint64_t LUN; - uint32_t ITT, TTT; -- uint32_t StatSN; -- uint32_t ExpCmdSN, MaxCmdSN; -+ uint32_t StatSN __trace_used; -+ uint32_t ExpCmdSN __trace_used, MaxCmdSN __trace_used; - -- LUN = DGET64(&rsp[8]); - ITT = DGET32(&rsp[16]); - TTT = DGET32(&rsp[20]); - StatSN = DGET32(&rsp[24]); -@@ -3166,13 +3145,12 @@ isboot_execute(struct isboot_sess *sess, pdu_t *pp) - isboot_execute(struct isboot_sess *sess, pdu_t *pp) - { - uint8_t *bhs = (uint8_t *)&pp->ipdu.bhs; -- int immediate, opcode; -+ int opcode; - int rc; - - if (pp == NULL) - return (EINVAL); - -- immediate = BGET8W(&bhs[0], 6, 1); - opcode = BGET8W(&bhs[0], 5, 6); - - ISBOOT_TRACE("isboot_execute opcode=0x%x\n", opcode);