]> git.droids-corp.org - dpdk.git/commit
pcapng: handle failure of link status query
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 10 Feb 2022 23:09:04 +0000 (15:09 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Mar 2022 08:19:40 +0000 (09:19 +0100)
commit442878db2e35ab276a1cd78cd836008e15eccd8b
treef76973ecfd2aa8b2cef285ebbdfd6593ba50593f
parenta8a1c40bdae2bf54cfd9ab4a0f46125ef2f54ce2
pcapng: handle failure of link status query

If rte_ethlink_get fails, the code can just not add speed
to the pcap file.

Coverity issue: 373664
Fixes: 8d23ce8f5ee9 ("pcapng: add new library for writing pcapng files")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/pcapng/rte_pcapng.c