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 CE3BC45BA3; Tue, 22 Oct 2024 18:12:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 568374029B; Tue, 22 Oct 2024 18:12:18 +0200 (CEST) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mails.dpdk.org (Postfix) with ESMTP id ED01A40272 for ; Tue, 22 Oct 2024 18:12:16 +0200 (CEST) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-37d47eff9acso3952698f8f.3 for ; Tue, 22 Oct 2024 09:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1729613536; x=1730218336; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=06pL9/Msta5fOIx3QL28aZ+Wpz+YDJb6622OA3f+vdA=; b=Q3L5ixaW70Ilmq1EQOgBkQG8I0o9j12Xa+RoqtcJfcxeDg3AsEJIuZ4wT9faymQXfz DkjwdbUR+tRhiAePGrYFueJkxv5WRhRQuaSQn9zo6hdmZc+c2hKa0nSxRYPYfxK13klT bOP/uHruA+iUzX6oZdIWMhNYpCDIPETvyVzBY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729613536; x=1730218336; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=06pL9/Msta5fOIx3QL28aZ+Wpz+YDJb6622OA3f+vdA=; b=AxqSMVnMaukt+437sg1ZZdJKUVeANVRZBOgCuCFskCFYEq2errKSFoqbWbN1nUM1Vb wLG8AqvYH0Okj916adlostyv/Smq3SV3tjCEdwabaHQ8OTayzSXNnd5VSUELBVesMTUx qejKl3DHUHf8/aO1N8LjFOVqcs+khsVYWfqqvAmwvoHl/IW6r8Of/oUKLCmq7qxAW8jV SypjjR4b4ewgYx4FmNSqcoe3Qk6sLQEHPMuLHGmnLQeHnX0YgZ02YCx7CDjsx6QkZQHV N/TIINhs1lwHg0TH4Rorv57sfpmFcO/0gTYUbuWQwDmQPWuhV6GaDpnWJkAfNdaFvZPt gUKQ== X-Gm-Message-State: AOJu0YyTxxVUyIRhkK+rrSg8r3j+3cBbs4TKIoDY7QDxwRIbK8+/WZhf Pve3MRYwEg7dgsqAFIP9xi2RW0McFU5zybrLXojWpr/mPT7ES1pQmMk93p7/2NqzRyC3RJdfxAk z8NG9HfwVptQZklF/j0h3I2j/RmkjgvVY8JDd X-Google-Smtp-Source: AGHT+IGfSlfsFiX+l/oToWLR0v3nM4CPdWUUWgF1ZsxdiBFAeZurq6rjv3MyDPjihB8z5MraaypI8KrthYE1MpfdEGE= X-Received: by 2002:adf:f78b:0:b0:37c:d569:97b with SMTP id ffacd0b85a97d-37efb79a434mr69651f8f.19.1729613536361; Tue, 22 Oct 2024 09:12:16 -0700 (PDT) MIME-Version: 1.0 References: <20241021082607.232829-1-sriharsha.basavapatna@broadcom.com> <20241021082607.232829-7-sriharsha.basavapatna@broadcom.com> <20241021090909.55f5ce0a@hermes.local> In-Reply-To: <20241021090909.55f5ce0a@hermes.local> From: Sriharsha Basavapatna Date: Tue, 22 Oct 2024 21:42:04 +0530 Message-ID: Subject: Re: [PATCH v6 06/47] net/bnxt: tf_core: TF support flow scale query To: Stephen Hemminger Cc: dev@dpdk.org, Shuanglin Wang , Kishore Padmanabha , Ajit Khaparde Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000077456d0625130874" 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 --00000000000077456d0625130874 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 21, 2024 at 9:43=E2=80=AFPM Stephen Hemminger wrote: > > On Mon, 21 Oct 2024 13:55:26 +0530 > Sriharsha Basavapatna wrote: > > > From: Shuanglin Wang > > > > TF supports the flow scale query feature for OVS application. > > The resource usage is tracked when opening a TF session > > or adding/deleting a flow. The resources includes WC TCAM, > > EM, Action, Counter, Meter, ACT_ENCAP, ACT_ENCAP, and SP_SMAC. > > User can query the resource usage using niccli. > > > > Several improvements on flow scale query feature: > > 1. Some default rules require both RX and TX resources; > > need to update usage states on both direcitons. > > 2. Update resoure usage state for regular flows only. > > 3. Added a buffer dirty state to avoid unnecessary > > state sync with firmware. > > > > This feature is disabled by default. Using the build flag > > -DTF_FLOW_SCALE_QUERY to enable it. > > > > Signed-off-by: Shuanglin Wang > > Reviewed-by: Kishore Padmanabha > > Reviewed-by: Ajit Khaparde > > Signed-off-by: Sriharsha Basavapatna > > > ### [PATCH] net/bnxt: tf_core: TF support flow scale query > > WARNING:TYPO_SPELLING: 'direcitons' may be misspelled - perhaps 'directio= ns'? > #14: > need to update usage states on both direcitons. > ^^^^^^^^^^ > > WARNING:TYPO_SPELLING: 'resoure' may be misspelled - perhaps 'resource'? > #15: > 2. Update resoure usage state for regular flows only. > ^^^^^^^ > > WARNING:LONG_LINE_COMMENT: line length of 296 exceeds 120 columns > #220: FILE: drivers/net/bnxt/hsi_struct_def_dpdk.h:23264: > +/* Common structure to cast crypto key split entries. This casting is re= quired in the following HWRM command inputs/outputs if the backing store ty= pe is TX_CK or RX_CK. 1. hwrm_func_backing_store_cfg_v2_input 2. hwrm_func_= backing_store_qcfg_v2_output 3. hwrm_func_backing_store_qcaps_v2_output */ > Thanks Stephen, will fix this in the next version. -Harsha --00000000000077456d0625130874 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature M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