[dpdk-stable] patch 'port: remove useless assignment' has been queued to LTS release 18.11.11

Kevin Traynor ktraynor at redhat.com
Thu Nov 5 13:39:54 CET 2020


Hi,

FYI, your patch has been queued to LTS release 18.11.11

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/10/20. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/720f9bc1894ed204659cfdf6d190265c627ad07b

Thanks.

Kevin.

---
>From 720f9bc1894ed204659cfdf6d190265c627ad07b Mon Sep 17 00:00:00 2001
From: Fan Zhang <roy.fan.zhang at intel.com>
Date: Fri, 18 Sep 2020 09:23:10 +0100
Subject: [PATCH] port: remove useless assignment

[ upstream commit 9ef2627cf64d4316224ca2de983fc32db9ed23c4 ]

This patch fixes an unused value in pcap source port by
removing the setting to the value.

Coverity issue: 362020
Fixes: d4b42133d85b ("port: add pcap file source")

Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
---
 lib/librte_port/rte_port_source_sink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_port/rte_port_source_sink.c b/lib/librte_port/rte_port_source_sink.c
index 54045f9520..fe7ea8b893 100644
--- a/lib/librte_port/rte_port_source_sink.c
+++ b/lib/librte_port/rte_port_source_sink.c
@@ -117,5 +117,5 @@ pcap_source_load(struct rte_port_source *port,
 
 	for (i = 0; i < n_pkts; i++) {
-		pkt = pcap_next(pcap_handle, &pcap_hdr);
+		pcap_next(pcap_handle, &pcap_hdr);
 		port->pkt_len[i] = RTE_MIN(max_len, pcap_hdr.len);
 		pkt_len_aligns[i] = RTE_CACHE_LINE_ROUNDUP(
-- 
2.26.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-11-05 12:38:55.141103537 +0000
+++ 0047-port-remove-useless-assignment.patch	2020-11-05 12:38:54.246896024 +0000
@@ -1 +1 @@
-From 9ef2627cf64d4316224ca2de983fc32db9ed23c4 Mon Sep 17 00:00:00 2001
+From 720f9bc1894ed204659cfdf6d190265c627ad07b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 9ef2627cf64d4316224ca2de983fc32db9ed23c4 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 74b7385a28..68575c9833 100644
+index 54045f9520..fe7ea8b893 100644



More information about the stable mailing list