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 1BB2AA09E9 for ; Mon, 14 Dec 2020 19:54:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EBD6CC97A; Mon, 14 Dec 2020 19:54:07 +0100 (CET) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id EB956C876 for ; Mon, 14 Dec 2020 19:54:03 +0100 (CET) Received: by mail-pj1-f66.google.com with SMTP id iq13so6799233pjb.3 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=2zc4AlnE72IfSOL1K5TyBTaZKa3o96u4tZZzXFVRvTQ=; b=AARCjEj2CAtl9X9IiJTQkQK2rz0Kss4vYA42W88c/IOxKdqMiupwZduS9RRy7RFzC5 GaPUwWDv2CRC0ivlyWFjbfWJT611g1eTm2MAunqdAco0qD3Wo+Bwa5ycfq0rRsee9Mvn 24Rf50Y3NAQXDkoZgCb927aiN2ija7FvDrpP4= 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=2zc4AlnE72IfSOL1K5TyBTaZKa3o96u4tZZzXFVRvTQ=; b=ZhSmVQWOAL67Gj73ez2AJc4gNbhJA71wTHaoJ2N7RzGIZdEt5Z1kFkSoPzN1l3+uey a7/ocHCoXNcOhpAr0xJsG2jBCfY/9lJWRObJXvv9YWLL/woC3cxaTU8kLg+UVgWZcmUY AbHyA3BzSWyAupe6YlCqgm3jnD7BcSoc6/AQZkRcsMoMoXIN3pWjq8UTgGUVohbE0U6Z /mVsoRmV8WlNcz4vewFS5shoRd+fp+UguzKtrfjr/9wkC3A3Lu2tc3Q28CXV3sG4XNnQ dYaJ4jLHnw6vJ3n++1iw/EioFFcIAe6rytRm8fflVP9i31w8nQGPYTNUqieRlDfSgpab XQ+A== X-Gm-Message-State: AOAM531pI1lVn/jaO5C6H/o8cDfzW9YplZ4SAm+ZQ3IqZh8HCA72Zg59 dkWBSVM0VaSCha/TZO8LiVDfU4pAcKt5LKYood58Ey15Z5b8rugXWes/XXHhe//E7xnS7XZBig= = 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-stable] [PATCH] net/bnxt: limit per-poll Rx representor pkts X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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.