From nobody Sun Apr 02 01:09:56 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 4PpwtD5k4Tz43g95; Sun, 2 Apr 2023 01:09:56 +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 4PpwtD5Cw4z3HSY; Sun, 2 Apr 2023 01:09:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680397796; 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=Jkgda2uKotBUK7RlEJs43e7tswNsxavj9O/3B5LqUUo=; b=DcisqzNC9sE8hpwNFzRWLymirLNuRlfMUiQu5ZUWxXWcPKJPRnoeTptpcKNhlT+xpzxQhc lDGidBA/y3YbvHevQgMYOt6ek//0MAKDOs0zTMzjCN/HdrtL2vrzDeslRv9zSMwAyXCv8W 75CQ5hG4Fu/c148hTFBaTdOku/rbILIslFq0DDVN01lcErpki7CdEk0bmzddGxgWW9PSYc FOhHFux+Ufb3LHRpsyDQjb19qQDoZ6tQp3wdyGPybS3bSP45VnLKm6GKO+EGAI5V0Qb9A7 hdEKGgzSL8/c1tvDDnbfM4KYBYGrYQt/gv6mc5FMwp7mz/5aPW3N3hNd6JD8Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680397796; 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=Jkgda2uKotBUK7RlEJs43e7tswNsxavj9O/3B5LqUUo=; b=YN5yIsY4yGTa+Y0KsYqJVFBB1XqtLb+L1QhtmEvKeTbv9tmmHqppFJWUjfgBtagb3oAbPp gqU0uMv0PrjAzsW/GwMTCy76LU4QTHwvKIJoo8oLLvaZZInqN1UZZ/PRNQhQUYcwUd9jXE 8GI/lPIzwmozPyRINFiE9BdS6gJeMKHV19UuEk20X4ok66zcZisqu2YlLEI6JT0OEfMZxk UJ2MsBByBo+Ln4UBUDl7tXMWvr3cj5MrshjQnRiHoRAGJtVVKSqEo5yYSKz+9GqU3xXQmz wtWOKI//bWGl+8Arna/vEaKUCbGBYsOx5UpZYVAKjvUYcRBXbpm8r9/H8v0PTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680397796; a=rsa-sha256; cv=none; b=QDoZ1TvW3Wp2fYg0gXjDb/cpgo7QXRfIiOHCCGrw0XuKxvc8ij4wwQrDliN5L0XCmbTgkb oAeks3z06bXY1V0pXqK/NQq8SmX9xk+KI1Unk5Iaz1+MEMXiuSt58Oovvj5p5qvExWCtQD +B2e+pMBeiWkodXll/g3ZguVRT9FI2kmxSuHjTROKeI8cTneWBSFRfAjtUFqI3reUnDORT 27FT+cc1pDx2b7jByb3+AKbbMPvzrBnWPLWYj5tVIwGUx99IPN3fJj50OCxv9x+ek5Cab5 STncs4a26GRxSl02FY0oKQSRGsVlCtEpw+JN8OiElvsGYPYwCQ9fHQu0JzSxZg== 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 4PpwtD4CfbzxRt; Sun, 2 Apr 2023 01:09:56 +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 33219uJQ054570; Sun, 2 Apr 2023 01:09:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33219uj4054569; Sun, 2 Apr 2023 01:09:56 GMT (envelope-from git) Date: Sun, 2 Apr 2023 01:09:56 GMT Message-Id: <202304020109.33219uj4054569@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Navdeep Parhar Subject: git: 9f354cd3d017 - main - cxgbe(4): Allow tracing filters on loopback ports. 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: np X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9f354cd3d0170f0deba2a548e7894d48aa67ee23 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=9f354cd3d0170f0deba2a548e7894d48aa67ee23 commit 9f354cd3d0170f0deba2a548e7894d48aa67ee23 Author: Navdeep Parhar AuthorDate: 2023-04-02 00:16:02 +0000 Commit: Navdeep Parhar CommitDate: 2023-04-02 00:50:46 +0000 cxgbe(4): Allow tracing filters on loopback ports. Each physical port has an associated loopback tx channel and anything transmitted over that channel by the driver is looped back internally by the hardware as if received on that physical port. This change allows tracing filters to be installed in this loopback path. MFC after: 1 week Sponsored by: Chelsio Communications --- sys/dev/cxgbe/t4_tracer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/t4_tracer.c b/sys/dev/cxgbe/t4_tracer.c index 3d9d7038bf17..00c403b59bba 100644 --- a/sys/dev/cxgbe/t4_tracer.c +++ b/sys/dev/cxgbe/t4_tracer.c @@ -388,7 +388,8 @@ t4_set_tracer(struct adapter *sc, struct t4_tracer *t) goto done; } tp.port = sc->port[t->tp.port - 4]->tx_chan + 4; - } + } else + tp.port = t->tp.port; tpp = &tp; done: if (rc == 0) {