git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e640362
)
port: remove useless assignment
author
Fan Zhang
<roy.fan.zhang@intel.com>
Fri, 18 Sep 2020 08:23:10 +0000
(09:23 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Tue, 6 Oct 2020 21:39:34 +0000
(23:39 +0200)
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")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
lib/librte_port/rte_port_source_sink.c
patch
|
blob
|
history
diff --git
a/lib/librte_port/rte_port_source_sink.c
b/lib/librte_port/rte_port_source_sink.c
index
74b7385
..
68575c9
100644
(file)
--- a/
lib/librte_port/rte_port_source_sink.c
+++ b/
lib/librte_port/rte_port_source_sink.c
@@
-116,7
+116,7
@@
pcap_source_load(struct rte_port_source *port,
}
for (i = 0; i < n_pkts; i++) {
- p
kt = p
cap_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(
port->pkt_len[i]);