From nobody Fri Sep 18 22:46:36 2026 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 4hmnmd49Gtz6t4yx for ; Fri, 18 Sep 2026 22:46:41 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hmnmd3R6Yz56JK for ; Fri, 18 Sep 2026 22:46:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789771601; 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=T+Y69aNZsUmvX08yj0lJnIkowZBLf9G5HNngKARK/ZY=; b=sHmahAk9n2ceEZXnpq5VNjGRsV4DofEg3xOgfC/HIhGw/aGQoSxaCYfWb+lOjlE7VovCAQ BaNQCe0iBjdYXIU5Mz/mwMDHxpiZHdrNzu91u7bhq8PHKweG+3nmsLGvmPb87EvF5IEhUk 0Te9WseMIJwhUEzP78ZoZW99k1FByAiIZOCO3GEsthYD6YObctvOOzLBHFav5seQHhjN2J qPPobWeOmOtD6LywxQTVdQKw19KN7y67CA+WodzBw7as3FdCNJWbUSGejVZs4K2PNXJ7q3 oqhztdKUdF1PRBn8M8/5PfPh2lGvW05hvcHe2xw0ryvaDAn3mMfYhYLjrhF6HQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789771601; b=RZn6PKKNDkQSuTTJ2j5vwFkasrl6ZEt0rrj/iSfesnnR+9rcFMsjsODqxYhVme03Iec6Kz EzYN/AZNRyStINtOhEoa5jtSvrSxXT4yady3r/aHLqgmJIqbKrRxC2lZcgylbBl/piUBin jHOXZz8K5Qzpdg89L8AynT0Ip4Bfpse9Pc5qXbu+T7kGYZTIlosqG8ptXSWs1m7TeyaBJW LJFdslWHC3BOa2UCDrnlr1bJXart7fdvCUut3SizR4RrfP8ZVhC36QyfpLrHJAdym6txw3 eNq9Vq7eW2BHbyH25ZQJKyZ6Y1mftamWUIFFzhGw6qyFZXqcQPvdVzRG90xCPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789771601; 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=T+Y69aNZsUmvX08yj0lJnIkowZBLf9G5HNngKARK/ZY=; b=rjWSEU55wSMzq3EdP0QBREqrP//w82iJaydKLGt18ynS754S4DHM50PejKeV93acedGUrS 1fmI97k4KTu9KtTHnFvbU67SX6u/tLLSn56JnkSlW5e0hXzjxK/5GJUjf8KrDNLZtLJMPm pCYJ6BzaZjqHvojsyhF6NVNgAI5LU1kvXAWFeka26x3wQw0uJqDMZVjzau54ZS+8AiZNZK debY3UmSSHbRx/Ypl4NEg7rjR+8455tTgl7D/QXa5LlHlP+y/OuhyuRAEHqToghNVpikzW mOSX0lBia+zoHU4fRDoPbnh+k2iAgGL2fTdYoF+3L/mYsplNYVkqnNJBqMR9oQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hmnmd2W84zfr5 for ; Fri, 18 Sep 2026 22:46:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22659 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 18 Sep 2026 22:46:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 7f1e93b1e57f - main - iavf: Use the common RSS key without options RSS 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7f1e93b1e57fedc10e149d606c64a8610245acb4 Auto-Submitted: auto-generated Date: Fri, 18 Sep 2026 22:46:36 +0000 Message-Id: <6aadbf4c.22659.5e9c13fd@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=7f1e93b1e57fedc10e149d606c64a8610245acb4 commit 7f1e93b1e57fedc10e149d606c64a8610245acb4 Author: Kevin Bowling AuthorDate: 2026-09-18 08:09:59 +0000 Commit: Kevin Bowling CommitDate: 2026-09-18 22:45:38 +0000 iavf: Use the common RSS key without options RSS Use rss_getkey() when programming the RSS key through virtchnl regardless of options RSS, matching the register-programming path. The common key is available independently of RSS queue placement; the driver-specific default otherwise makes the chosen key depend on the PF's configuration interface. Remove the unused default-key helper and its declarations. Preserve the negotiated key length, zero padding, hash selections, and indirection-table policy. Reviewed by: gallatin MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59790 --- sys/dev/iavf/iavf_iflib.h | 1 - sys/dev/iavf/iavf_lib.c | 23 ----------------------- sys/dev/iavf/iavf_lib.h | 1 - sys/dev/iavf/iavf_vc_common.c | 4 ---- 4 files changed, 29 deletions(-) diff --git a/sys/dev/iavf/iavf_iflib.h b/sys/dev/iavf/iavf_iflib.h index b9289d8d4050..bbd05e8279ca 100644 --- a/sys/dev/iavf/iavf_iflib.h +++ b/sys/dev/iavf/iavf_iflib.h @@ -393,7 +393,6 @@ struct iavf_sc { /* Function prototypes */ void iavf_init_tx_ring(struct iavf_vsi *vsi, struct iavf_tx_queue *que); -void iavf_get_default_rss_key(u32 *); const char * iavf_vc_stat_str(struct iavf_hw *hw, enum virtchnl_status_code stat_err); void iavf_init_tx_rsqs(struct iavf_vsi *vsi); diff --git a/sys/dev/iavf/iavf_lib.c b/sys/dev/iavf/iavf_lib.c index 9d6d64829268..c23e14a47444 100644 --- a/sys/dev/iavf/iavf_lib.c +++ b/sys/dev/iavf/iavf_lib.c @@ -57,29 +57,6 @@ iavf_msec_pause(int msecs) pause("iavf_msec_pause", MSEC_2_TICKS(msecs)); } -/** - * iavf_get_default_rss_key - Get the default RSS key for this driver - * @key: output parameter to store the key in - * - * Copies the driver's default RSS key into the provided key variable. - * - * @pre assumes that key is not NULL and has at least IAVF_RSS_KEY_SIZE - * storage space. - */ -void -iavf_get_default_rss_key(u32 *key) -{ - MPASS(key != NULL); - - u32 rss_seed[IAVF_RSS_KEY_SIZE_REG] = {0x41b01687, - 0x183cfd8c, 0xce880440, 0x580cbc3c, - 0x35897377, 0x328b25e1, 0x4fa98922, - 0xb7d90c14, 0xd5bad70d, 0xcd15a2c1, - 0x0, 0x0, 0x0}; - - bcopy(rss_seed, key, IAVF_RSS_KEY_SIZE); -} - /** * iavf_allocate_pci_resources_common - Allocate PCI resources * @sc: the private device softc pointer diff --git a/sys/dev/iavf/iavf_lib.h b/sys/dev/iavf/iavf_lib.h index a483c9e4f755..c56e55b555a0 100644 --- a/sys/dev/iavf/iavf_lib.h +++ b/sys/dev/iavf/iavf_lib.h @@ -430,7 +430,6 @@ bool iavf_mbx_log_allowed(struct iavf_sc *sc); void iavf_update_link_status(struct iavf_sc *); bool iavf_driver_is_detaching(struct iavf_sc *sc); void iavf_msec_pause(int msecs); -void iavf_get_default_rss_key(u32 *key); int iavf_allocate_pci_resources_common(struct iavf_sc *sc); bool iavf_reset_is_complete(struct iavf_hw *hw); int iavf_reset_complete(struct iavf_hw *hw); diff --git a/sys/dev/iavf/iavf_vc_common.c b/sys/dev/iavf/iavf_vc_common.c index 9470d764d610..5f39f0334e83 100644 --- a/sys/dev/iavf/iavf_vc_common.c +++ b/sys/dev/iavf/iavf_vc_common.c @@ -726,12 +726,8 @@ iavf_config_rss_key(struct iavf_sc *sc) int msg_len, key_length; u32 rss_seed[IAVF_RSS_KEY_SIZE_REG] = {0}; -#ifdef RSS /* Fetch the configured RSS key */ rss_getkey((uint8_t *) &rss_seed); -#else - iavf_get_default_rss_key(rss_seed); -#endif /* Send the fetched key */ key_length = sc->vf_res->rss_key_size;