From nobody Thu Oct 31 16:00:04 2024 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 4XfTGY1Hjtz5bwl7; Thu, 31 Oct 2024 16:00:05 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XfTGX5kd9z4NsL; Thu, 31 Oct 2024 16:00:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730390404; 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=SG0JZNdYlDqozurAD7R6V2c/ZmcbQZ6qi5KxOf9KdR4=; b=DUVb7BuNqEh2+KBpGa+kdolvyJOOykiHyhMY8HWlg8lmKg/qa/s9Tn7yZZD9R7AeZ8Ud8W ikp8an9ZmPYiL+4/0RUpCa52RNS3F1jw5rGPwXDYfc49U0WyFTafFQBZBxqGhYDSS8vz9z kmABg8I9mmN72JibvzGfaqaDgl9a0sDfwoNvs+RNMZJ3JE8Yu+G1e5Ypv/J8ZU1bmofd0z gHr/VoehwnqJTlBsDlDwtCwpKI9Rm57UFbwc1tj62cNOOfcc1fFL1qJdZtmsL8SHXSMw/b NSSYk2Gk2COlNvlLnpZNdRZ6vMhiVPSDugaaoembybctVS9E+LOs7A0r1qSseQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730390404; 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=SG0JZNdYlDqozurAD7R6V2c/ZmcbQZ6qi5KxOf9KdR4=; b=TmTVRRLr7xclg74M/JMSU3Ep+1stH1YgnSwnQ92mkq7fpy+3MdCcqFdybuBT5nxU8tMZjD O5zCMhrODfbfGoC4jaSNoIDM0I4wAWgs/19MIw+DYDWZjP+lOwPipOSKjBVZtq/Vc91xHt yDnmb+038j9EogXOFmS457Do6UhWYmMibsOdf84sjIFiOlQ0WlDIDLB4S5Ye3Xsx/7y5/G POpZtyY0fmz+QKDckm01qmV1pOCtUJ6sJVveqtY0kotevGx3zVMkYh3HvO2y69mfGTisJJ 83pb847z69urEAKlnXPqXCOizyfRr+aa7vVZcqJzBvhKZA7AAyde1UuNgSK1pg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730390404; a=rsa-sha256; cv=none; b=VC8SloY6Uffc4Qhe9HGMb0lnKr+XiWlktoCq0ws1OoKR+pqqNoTmxLWAK7RHS0aGdAto/m iYqm3EAS6fUg5Xw3SyKARZ7/toWDUn0OdATmJsKFFB30E0u65VR0801G6608BWFs4neX6V IMId2IF5K2++7ZrMOKUpD2yewWRW+OUtgo8q4atzKiiUMUjm/UTocGHSHpBMqseKx26qQk ujBxqQiC/dIOgGykO9Q01V/P4lF1peE3wiWMqe7UzzwPjYcPApEH0K4KX6sHJwHQDWPOMo +N9WBTL39yM4YRTcIKKEz3PZJcuHn0H3QMlVStV5Zvfy7kiuDZ53Qp+Tfl8kBA== 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 4XfTGX3p1zzj7V; Thu, 31 Oct 2024 16:00:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49VG042j060429; Thu, 31 Oct 2024 16:00:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49VG04Ym060425; Thu, 31 Oct 2024 16:00:04 GMT (envelope-from git) Date: Thu, 31 Oct 2024 16:00:04 GMT Message-Id: <202410311600.49VG04Ym060425@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Osama Abboud Subject: git: d96267deb493 - stable/13 - ena: Set ena_min_poll_delay_us default value 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: osamaabb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d96267deb493add01e5e99700b866573e3342419 Auto-Submitted: auto-generated The branch stable/13 has been updated by osamaabb: URL: https://cgit.FreeBSD.org/src/commit/?id=d96267deb493add01e5e99700b866573e3342419 commit d96267deb493add01e5e99700b866573e3342419 Author: osamaabb AuthorDate: 2024-09-23 08:06:41 +0000 Commit: Osama Abboud CommitDate: 2024-10-31 14:55:20 +0000 ena: Set ena_min_poll_delay_us default value This commit sets the default value for ena_min_poll_delay_us to 100. This commit does not change the behavior of the driver, the delay is calculated as MAX(ENA_MIN_ADMIN_POLL_US, delay_us), where the first field is already defined as 100. The second parameter, delay_us is taken from ena_min_poll_delay_us which is currently unset - 0. Approved by: cperciva (mentor) Sponsored by: Amazon, Inc. (cherry picked from commit 637ff00f2f9bd6c8509d0e2ac8959c7a23f09650) --- sys/dev/ena/ena.c | 2 ++ sys/dev/ena/ena.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c index a895ede8226f..6943480aecc5 100644 --- a/sys/dev/ena/ena.c +++ b/sys/dev/ena/ena.c @@ -3737,6 +3737,8 @@ ena_attach(device_t pdev) goto err_bus_free; } + ena_dev->ena_min_poll_delay_us = ENA_ADMIN_POLL_DELAY_US; + /* Initially clear all the flags */ ENA_FLAG_ZERO(adapter); diff --git a/sys/dev/ena/ena.h b/sys/dev/ena/ena.h index 1a436a702ba1..876c3cd258aa 100644 --- a/sys/dev/ena/ena.h +++ b/sys/dev/ena/ena.h @@ -146,6 +146,8 @@ /* Max number of timeouted packets before device reset */ #define ENA_DEFAULT_TX_CMP_THRESHOLD (128) +#define ENA_ADMIN_POLL_DELAY_US 100 + /* * Supported PCI vendor and devices IDs */