From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 91CB245B90; Mon, 21 Oct 2024 10:17:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 800AC402EB; Mon, 21 Oct 2024 10:17:39 +0200 (CEST) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id 147D34028C for ; Mon, 21 Oct 2024 10:17:35 +0200 (CEST) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-7ea16c7759cso2110853a12.1 for ; Mon, 21 Oct 2024 01:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1729498654; x=1730103454; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ihh5iuhHB/KMkK79a1Ov1Nx4pM7FBIaW1GGk/ySuhpI=; b=OqiAHomVWAniQpwHewWcWvcFi2T8V6e02eYBOm7dyIyb0Putv3Fz2uTNL/u6jHcx1R P+IXDIIWlkHDBld8YulVAQqnZif/kSflOu6VUUml9e02Z3XzXk/X5jkBmdZXqDigTl0Q Ofq/3+WiJ6DqWUUSMqTTprjbH8Y9apYFte5KE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729498654; x=1730103454; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ihh5iuhHB/KMkK79a1Ov1Nx4pM7FBIaW1GGk/ySuhpI=; b=jOC76cxYlHazNOJt+zPv/nFGN75DRXb8+jdn6OTZRpUWAwX4k+hfjbR7j+ig7dt50E iw13lNUdV9GtMZK+Tj89CoGJx8pYaJok20NW5rhc8JCF2eyTa2n+3BWyIpPyN3B55wr1 8Z7Yndf8jHy47kKn9iIsko1oMGwUaGzGaOEbCoQRge7BAQ/7upcphN7pkdLRCncLmXO0 OWDVtGvTG4whZxdJxZ4zXUtKtkg91HutA41VfkXphWntZYE33KQqaVN8FBTpbCEn7g6/ YIu3qBWIgn6ts3YkAtMt8PbztzEQoEAxHOo7RqEJk88/MGFt7q+Ks36DlVDvaGvVcgtb spCw== X-Gm-Message-State: AOJu0Yw74xngh25r7ZKXVnvohu25KkIh240zsmqQXHtKYZhyGRnKQ5ni j/++xBxE/Ku/A7qfr9gbmWI2zcYBgWbDkxLvFluAfhGVwU8l3vQAKVFOZZK9no6oWFAd7s5RJYb sV5AGRvLFtcpdDZhvw3KHuOSTcjtfIyW7xlCo0ArXfegozQ2ECvu6PiU6e6yjQPg444aX40DETO bXjpiK82cpiWlSE3YIRUFVbT8rokn100hLZ3q8nsdKGw== X-Google-Smtp-Source: AGHT+IERq/LdECSplr6gJdVUJAD9o1rK2FIhpbf1xBaPRfvj4IdzoQJOlZ7oDB85VxaMRDaNgO4RhQ== X-Received: by 2002:a05:6a21:460c:b0:1cc:9f25:54d4 with SMTP id adf61e73a8af0-1d92c56ddc6mr15680827637.38.1729498653517; Mon, 21 Oct 2024 01:17:33 -0700 (PDT) Received: from dhcp-10-123-154-23.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ec1313926sm2291631b3a.4.2024.10.21.01.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 01:17:33 -0700 (PDT) From: Sriharsha Basavapatna To: dev@dpdk.org Cc: Jay Ding , Sriharsha Basavapatna , Michael Baucom , Farah Smith , Ajit Khaparde Subject: [PATCH v6 21/47] net/bnxt: tf_ulp: add action read and clear support Date: Mon, 21 Oct 2024 13:55:41 +0530 Message-Id: <20241021082607.232829-22-sriharsha.basavapatna@broadcom.com> X-Mailer: git-send-email 2.39.0.189.g4dbebc36b0 In-Reply-To: <20241021082607.232829-1-sriharsha.basavapatna@broadcom.com> References: <20241021082607.232829-1-sriharsha.basavapatna@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Jay Ding Implement action read and clear support. Change flow query count to reset the count after read in ULP. Update cli cmds accordingly. Fixed bnxt_mpc_xmit() to pad the mpc message to be multiple of 16 bytes. Signed-off-by: Jay Ding Signed-off-by: Sriharsha Basavapatna Reviewed-by: Michael Baucom Reviewed-by: Farah Smith Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c b/drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c index f1bbce797d..2be37b59c2 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c +++ b/drivers/net/bnxt/tf_ulp/ulp_fc_mgr_tfc.c @@ -83,6 +83,10 @@ ulp_fc_tfc_flow_stat_get(struct bnxt_ulp_context *ctxt, cmm_info.rsubtype = CFA_RSUBTYPE_CMM_ACT; cmm_info.act_handle = handle; cmm_info.dir = (enum cfa_dir)direction; + cmm_clr.clr = true; + cmm_clr.offset_in_byte = 0; + cmm_clr.sz_in_byte = sizeof(data64[ULP_FC_TFC_PKT_CNT_OFFS]) + + sizeof(data64[ULP_FC_TFC_BYTE_CNT_OFFS]); rc = tfc_act_get(tfcp, NULL, &cmm_info, &cmm_clr, data, &word_size); if (rc) { BNXT_DRV_DBG(ERR, -- 2.39.3