From nobody Tue Oct 15 17:43:09 2024 X-Original-To: dev-commits-src-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 4XShJt12Gfz5Ym29; Tue, 15 Oct 2024 17:43:10 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XShJs62lDz4ZL5; Tue, 15 Oct 2024 17:43:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729014189; 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=Sm8AcdA4FQli73LdnsJH5FBYGj1Em4gT5mmdNXxdOqg=; b=FYR2eS/UJQl4HyxYtajrMRB+pAF6Qjg9x2BQvYCN8hMQEi+/f5yyaGyq6HdqSKWHT694BK Xdq9Gf9uAf5rD+bh/qZvo2A+jiuVnP5kve6jBGfnjYl5wSKdqjMyUFIsuhrJ+Eik7dVDvq MreIJeslG2WV3qhxkZOpIR9uakZpNaTU3nNvTEIR/OwFwJDF3P0ZD45OjuseSaieiyTumm NVl1UQyVQbwEq7VAsjKlXwtyJiDqTcMiEoy+gtfYoT3XhNHr3Z24cfsqCWlcHcSbvLZEdp 8MfQELjSoutS8+T5faH51RsTURQNQjwufeMoPznDQT9wkJfUy9Zjt+BcGlhoLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729014189; 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=Sm8AcdA4FQli73LdnsJH5FBYGj1Em4gT5mmdNXxdOqg=; b=TUr1swbBvuUd5VnHq7kRwmLKh81GUdGIHT/tjDLDgxLLiSapnT2JUg3F4VA4nXuka8pADs k1Hjl+mBSbmxypERVlXP6eAJ1kaWoKpvKw+Bq5bFGuAN4kJlYaRmY5u/IsXOBb1Z86tRUT 4vF2WcWfQe4FUVFjl2xZ2jbLV+GYm9Q4Dx0idwKVVoq9svxKJRkZd69AfV0pyhxelufZOq /AOv0XDp/BcZqUelzl5uXwMm/NgrqSetroOl7DdchRJn/m/i3a3kQaYBI5ZdhcDSxVkUBi 7XM6WV4wYU7+s8FJ3wwAnjpgz0lLURaeVHUOrRRByGqo4hzxdZm68HQ58dRbGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729014189; a=rsa-sha256; cv=none; b=L0zJmgPeL/A2GehlUUFWOj53C5NU+Dd88lJmEDdqcwKKQIeXg+BN1h1rGasQl718dsd1Ad Riz6XKjMaZSgGVv/m19K87Q8H2G6GVa97ZAV1EnYB2XLXd9k7WJkH3e1JZx7psEg4NySrL 6VHK65UMWqC+mr96wKygaLEmcE0Q3iWRS8RsnfjELDsdvLfzshNx4bHAVcFNnKNIEb8ni5 tZ+ZzCNzh5xpd4BZL1m/RSDPeUrk8Mc1lT5KTBxFlW7ozkYZm3fHBiPCa4mgF9ZJJ/5wEZ RmfuOPf2VGGBbFVt7hFigwxee8AXROBiZPwypJ96rTdIoNxGHRgzPlhJ0itgIg== 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 4XShJs5cZqzXQB; Tue, 15 Oct 2024 17:43:09 +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 49FHh93R062233; Tue, 15 Oct 2024 17:43:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49FHh9Bm062230; Tue, 15 Oct 2024 17:43:09 GMT (envelope-from git) Date: Tue, 15 Oct 2024 17:43:09 GMT Message-Id: <202410151743.49FHh9Bm062230@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Osama Abboud Subject: git: 637ff00f2f9b - main - ena: Set ena_min_poll_delay_us default value List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 637ff00f2f9bd6c8509d0e2ac8959c7a23f09650 Auto-Submitted: auto-generated The branch main has been updated by osamaabb: URL: https://cgit.FreeBSD.org/src/commit/?id=637ff00f2f9bd6c8509d0e2ac8959c7a23f09650 commit 637ff00f2f9bd6c8509d0e2ac8959c7a23f09650 Author: osamaabb AuthorDate: 2024-09-23 08:06:41 +0000 Commit: Osama Abboud CommitDate: 2024-10-15 17:38:31 +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) MFC after: 2 weeks Sponsored by: Amazon, Inc. --- 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 36e9ac15e8ff..8c20596d3d23 100644 --- a/sys/dev/ena/ena.c +++ b/sys/dev/ena/ena.c @@ -3736,6 +3736,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 */