From patchwork Mon Mar 25 22:28:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13603100 Received: from mail-oo1-f44.google.com (mail-oo1-f44.google.com [209.85.161.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79D9274E2E for ; Mon, 25 Mar 2024 22:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711405771; cv=none; b=M92LOmGYoNgFbl4XQxnChGYBS17+Xkq921vI/zWpMhieX4viZKUMjmqEgdmPLB8XqPw28frpoCyWDR8oCs54Iy7ec4+sAQEqZ07HM4RApth7dZ23dMNanVv9ZCIsHP2AzTZTfTZRk7+x+WUwqx/SkXNPqshXYPvW63WCRPlA7iw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711405771; c=relaxed/simple; bh=6o04DXWTNNMbfWHHJN84lljrZ28H6CKPiMoN0F2UMl0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=opUJCF+s5Sl+36IkZwSarjm3rBHRYCNEpdMaobyoHlD9aJ2DHooL4PkVanbfKXmgzyK0kj86KxnWwJOnqVeopL+KxSaoKvW0FYZPmt+6uN5x1LkCpTbQFbkTRCrSxBXV/hW7O7CFIEdz0kYuLASkj6SgU0BU0LhwEZ7nxpwvo/A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=aLjqPB9A; arc=none smtp.client-ip=209.85.161.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="aLjqPB9A" Received: by mail-oo1-f44.google.com with SMTP id 006d021491bc7-5a56710cdccso304219eaf.3 for ; Mon, 25 Mar 2024 15:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1711405768; x=1712010568; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=sfcilllY7QO9mEuPD2g+qWSbDsDmCh7zTBHYCU5LZrU=; b=aLjqPB9AXz9+u6mRMMMk9CrS+ZsfZagebu4iRAxox30onmx0Ri3KOXTFpsZY7eAEDH Q88ApKU5j+YNku+gRR5ghpkJkUCxf2T9ofO74KmulJOZUSICw5YOwFYh3XnZ1z4WwaNz IOALfd8zAg+rLRbMXbUHYA+EahtM+/OOXhtIE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711405768; x=1712010568; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sfcilllY7QO9mEuPD2g+qWSbDsDmCh7zTBHYCU5LZrU=; b=eZcqvKUZXopF6LpGxXe9aC35AQ48SpnKMkjbfKLJxe8kTTAN5edhx9F275OALSpOk5 hwDReT7jfkQyftTwiGUCRclk8RaIszlgJgsTEBBxg4S2XgZvE5DtwIbnyeoZiagmircI Rel1hqGHr+1eZqAsOTWLO5SEgQoWnffPATvrJlApdS8yT8eqBkwyLkJYPNfhWk1tOkuW hpgdWKe6yDAXHDQzk+sSAj02OmEXPacqS/WVszK53J4fzPBrUTTJzQ0wsualULMi0QJ4 ygEzH/Y9mjPIbUlMRlDvcVPafGOa/3R1pOcG0AoBzuDjuOX+/BUcmZNtSpyDvZimXjF3 d0mw== X-Gm-Message-State: AOJu0YzuHuAoDIMibqrmqPfq+xtfYAQaHt2eEPfzn0GjFbk9X6Bln9Xc Vhl0v4+fC3o++BSFGtCfOAlK7ghFIzCpPRu3TPnctkixGDvKgnRuAefO5Bqs6A== X-Google-Smtp-Source: AGHT+IGVFl2ZVL40bYqn1ScGFBLyeHHMAb/9EIWrXYn0IQ4joQaEvrXKCafEoVB7czR2SUD96nPLpg== X-Received: by 2002:a05:6358:33a4:b0:17f:87fc:e0cc with SMTP id i36-20020a05635833a400b0017f87fce0ccmr1144571rwd.14.1711405768162; Mon, 25 Mar 2024 15:29:28 -0700 (PDT) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id t10-20020a63dd0a000000b005e438fe702dsm6301610pgg.65.2024.03.25.15.29.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2024 15:29:27 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, pavan.chebbi@broadcom.com, andrew.gospodarek@broadcom.com Subject: [PATCH net-next 00/12] bnxt_en: PTP and RSS updates Date: Mon, 25 Mar 2024 15:28:50 -0700 Message-Id: <20240325222902.220712-1-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The first 2 patches are v2 of the PTP patches posted about 3 weeks ago: https://lore.kernel.org/netdev/20240229070202.107488-1-michael.chan@broadcom.com/ The devlink parameter is dropped and v2 is just to increase the timeout accuracy and to use a default timeout of 1 second. Patches 3 to 12 implement additional RSS contexts and ntuple filters for the RSS contexts. Michael Chan (3): bnxt_en: Add a timeout parameter to bnxt_hwrm_port_ts_query() bnxt_en: Simplify bnxt_rfs_capable() bnxt_en: Refactor bnxt_set_rxfh() Pavan Chebbi (9): bnxt_en: Retry PTP TX timestamp from FW for 1 second bnxt_en: Add helper function bnxt_hwrm_vnic_rss_cfg_p5() bnxt_en: Refactor VNIC alloc and cfg functions bnxt_en: Introduce rss ctx structure, alloc/free functions bnxt_en: Refactor RSS indir alloc/set functions bnxt_en: Add a new_rss_ctx parameter to bnxt_rfs_capable() bnxt_en: Support RSS contexts in ethtool .{get|set}_rxfh() bnxt_en: Refactor bnxt_cfg_rfs_ring_tbl_idx() bnxt_en: Support adding ntuple rules on RSS contexts drivers/net/ethernet/broadcom/bnxt/bnxt.c | 348 ++++++++++++------ drivers/net/ethernet/broadcom/bnxt/bnxt.h | 39 +- .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 221 +++++++++-- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 30 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h | 5 + drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 2 +- 6 files changed, 509 insertions(+), 136 deletions(-)