[dpdk-dev] [PATCH] Fix librte_pmd_pcap driver double stop error

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Sep 29 15:21:18 CEST 2014


2014-09-10 17:17, Nicolás Pernas Maradei:
> From: Nicolás Pernas Maradei <nico at emutex.com>
> 
> librte_pmd_pcap driver was opening the pcap/interfaces only at init time and
> closing them only when the port was being stopped. This behaviour would cause
> problems (leading to segfault) if the user closed the port 2 times. The first
> time the pcap/interfaces would be normally closed but libpcap would throw an
> error causing a segfault if the closed pcaps/interfaces were closed again.
> This behaviour is solved by re-openning pcaps/interfaces when the port is
> started (only if these weren't open already for example at init time).
> 
> Signed-off-by: Nicolás Pernas Maradei <nico at emutex.com>
> ---
>  lib/librte_pmd_pcap/rte_eth_pcap.c | 254 +++++++++++++++++++++++++++++--------
>  1 file changed, 202 insertions(+), 52 deletions(-)

Someone to review this patch?

-- 
Thomas


More information about the dev mailing list