From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AFCEBA09E9; Mon, 14 Dec 2020 19:54:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C157C876; Mon, 14 Dec 2020 19:54:06 +0100 (CET) Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by dpdk.org (Postfix) with ESMTP id EA9E6137D for ; Mon, 14 Dec 2020 19:54:03 +0100 (CET) Received: by mail-pj1-f68.google.com with SMTP id f14so6799659pju.4 for ; Mon, 14 Dec 2020 10:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=kP10l1AsA81KICqH1nisXTxWHL4ycF0UUGU47cE00UY=; b=Y0D/TVgGcaTfpH1CmXifFEra30k4CrcTi+tunEpFi4dDKqr4l9aczzSWiyNqZdlRWt 337Dq6c7DEgxG2GvDYbqu3h9UBRqgT83lBhUHOwfHncW4YApfhJJdMTQPevKtLpim1CH vC3eQ9o+l7XEG3ysZWI0cLzqK0m85kBPWlPj8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=kP10l1AsA81KICqH1nisXTxWHL4ycF0UUGU47cE00UY=; b=XmzIV1gQaspeq1Xn0f+grjOdeYt57yLpnl0T+CPyH2bp5NvRE09kx18UBoPLhh+SeR b+SsVax4hmpYyS5Jp7LEkzc7MmoBTH3T9MV2eRhaSvOEYchZJJxs2SbRa84rkEYBIz2t Mh9UEhN1HpUYXu7i8s3AzDj+zuEKyEoif90wLXul7KY5OmU4JXBxW0F3KgjidFfbY+na MdVbjiXCy2dJioAZm3wV4x2yNbZAxs1xZ/I15Ndm7XuNG71B5aS2Vzx5KbiTrrCXwt3y wPuLAAjwkVhFHGCDKRpxiYtZWIjMj8OUN0QSoZ2OiCjHyk3R1Ar3+j3vJUoEhUTBqX06 lpvw== X-Gm-Message-State: AOAM53066VHzFGw1vaW1PBOF0A43BCRal1ZZ2tz3XSCYNzM49Bze25Ln AV58BD/vOpOMJ0y6xsco0lu3H++fLw+jxL1etPm0Q0+sSgmAbA/E0pJeScHooU6XjVJylw== X-Google-Smtp-Source: ABdhPJzaSgaxju3e/aBjAntkyWJQgxx/kUmduIdM6In5+doVizQN5ZWxoAGEVPuwLKNXAFNUAFOa/A== X-Received: by 2002:a17:90a:dc07:: with SMTP id i7mr26359495pjv.163.1607972042083; Mon, 14 Dec 2020 10:54:02 -0800 (PST) Received: from localhost.localdomain ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id x23sm4014900pge.47.2020.12.14.10.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 10:54:01 -0800 (PST) From: Lance Richardson To: Ajit Khaparde , Somnath Kotur , Venkat Duvvuru Cc: dev@dpdk.org, ferruh.yigit@intel.com, stable@dpdk.org Date: Mon, 14 Dec 2020 13:53:52 -0500 Message-Id: <20201214185352.252477-1-lance.richardson@broadcom.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH] net/bnxt: limit per-poll Rx representor pkts X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Limit number of representor packets transferred per poll to requested burst size. Fixes: 6dc83230b43b ("net/bnxt: support port representor data path") Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Somnath Kotur Cc: stable@dpdk.org --- drivers/net/bnxt/bnxt_rxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c index 2b1dd97617..ffdeeecc3a 100644 --- a/drivers/net/bnxt/bnxt_rxr.c +++ b/drivers/net/bnxt/bnxt_rxr.c @@ -901,7 +901,7 @@ uint16_t bnxt_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, } raw_cons = NEXT_RAW_CMP(raw_cons); - if (nb_rx_pkts == nb_pkts || evt) + if (nb_rx_pkts == nb_pkts || nb_rep_rx_pkts == nb_pkts || evt) break; /* Post some Rx buf early in case of larger burst processing */ if (nb_rx_pkts == BNXT_RX_POST_THRESH) -- 2.25.1 -- This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.