Checks
Commit Message
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: roy.fan.zhang@intel.com
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
---
lib/librte_port/rte_port_source_sink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> 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: roy.fan.zhang@intel.com
> Cc: stable@dpdk.org
>
> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Applied, thanks
@@ -116,7 +116,7 @@ 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(
port->pkt_len[i]);