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 4516243BD1; Sun, 25 Feb 2024 07:18:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB0E040283; Sun, 25 Feb 2024 07:18:22 +0100 (CET) Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) by mails.dpdk.org (Postfix) with ESMTP id 23CDC40270; Sun, 25 Feb 2024 07:17:04 +0100 (CET) Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3bb9d54575cso1683341b6e.2; Sat, 24 Feb 2024 22:17:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708841823; x=1709446623; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DEXjVgB+OUR4a7AS2N+nPfHJ1H9vI8bTrndQWhkwpso=; b=Z5tkihdk9tahkyztjRbgR6Baz3NT2Lbaw/poMAvq+iiG7tDGOehY/gp0myNJA1Yd03 l3YUe2aPGwf4epT5V3H8JeBE8+OFOreUEgnR9FTjBiK77llclpKQ8GBfpuwtK+JiNGS5 s9m71f3qF9SMH2OcxneS6nTvlafAj07rHdME6EO0I9ypY/MNj74irgGDeeL3pN1EOPPH 4wEC5zJAljBN8AeXqVWCY1KuuIynNBhwwMOr7Dk5wZ/Tyg/80lmHcxo7mlw3jGzCH+AY 7+7SzXSAr2Hw39zhvwtbTBluPaO62g2SCjF7ddPZW7/8UckysZmWrRgJlTSMlHo+VMrK DotQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708841823; x=1709446623; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DEXjVgB+OUR4a7AS2N+nPfHJ1H9vI8bTrndQWhkwpso=; b=AzAmBG7xEZuNNSaWxl+lY5fz4iYYIXS7SIkSupwq/kAiOPwMaqDd0Mtd85rYvuQTkD RT533Pguwvbp290RkCPvmjyncMRtzoil3sMDtqWXkwQ13Wuac+8XR5vam7u4ircgJJ5G UnnhUyKMhmN3qKTq2fKXSEuhtz3IIKfD8KMJH7ofZn10bJn18vW9aoeKZUEGrclJ7DcE 0h7J93nKC6fIsdsSGor5+0KBKVf7ITr4X8PimyQwBevd1JxAvK8smlwfdHvcWE49TJVJ rBDAHzowIIAFtiRIS6hdvGYedV5sQkDUjAM5HyT8JKNHF8NSpMW+jYFYG4aOFf5ADyBa H0XQ== X-Forwarded-Encrypted: i=1; AJvYcCWK+s6US5fAk6t2AHyusW036xlnF/yyQUZUxILquJAKEMCzsU+PeRTV/trcHXqfV/ME4DknzntbpBv3w/s3iKs= X-Gm-Message-State: AOJu0YxpdsyqY8tq/K4jSJtvrJfZPCbs4XsQr1KWY/C5afbi8i/QRo8o 1mtZcXS5FZN6LQwPj47A3hiYJVixYfILmGp4RxRBEHL5ZXmQXB0u X-Google-Smtp-Source: AGHT+IGGgHacg3KAakh9g3sdNeiuVv3pF/fnrEaoHH9GYSi8iE3BDum2d1/erUDiW/Pk0ulqxvObUQ== X-Received: by 2002:a05:6808:1493:b0:3c1:9b7b:5836 with SMTP id e19-20020a056808149300b003c19b7b5836mr1626367oiw.12.1708841823334; Sat, 24 Feb 2024 22:17:03 -0800 (PST) Received: from IDCREDBOX918.fareast.corp.microsoft.com ([167.220.238.25]) by smtp.gmail.com with ESMTPSA id c10-20020aa781ca000000b006e4ce93dc28sm1887097pfn.104.2024.02.24.22.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 22:17:02 -0800 (PST) From: Kumara Parameshwaran To: ferruh.yigit@amd.com Cc: dev@dpdk.org, Kumara Parameshwaran , stable@dpdk.org Subject: [PATCH v1] app/testpmd : return if no packets in GRO heavy weight mode Date: Sun, 25 Feb 2024 11:46:36 +0530 Message-Id: <20240225061636.389218-1-kumaraparamesh92@gmail.com> X-Mailer: git-send-email 2.25.1 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 If there are no packets flushed in GRO heavy weight mode, return false as this fall through code would return true indicating that packets are available Fixes: 461c287ab553 ("app/testpmd: fix GRO packets flush on timeout") Cc: stable@dpdk.org Signed-off-by: Kumara Parameshwaran --- app/test-pmd/csumonly.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index d73f08b2c6..6711dda42e 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -1142,6 +1142,8 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) gro_pkts_num); fs->gro_times = 0; } + if (nb_rx == 0) + return false; } pkts_ip_csum_recalc(pkts_burst, nb_rx, tx_offloads); -- 2.25.1