From: Neil Horman Subject: Re: [PATCH v2] Fix librte_pmd_pcap driver double stop error Date: Mon, 6 Oct 2014 10:50:20 -0400 Message-ID: <20141006145020.GE22304@hmsreliant.think-freely.org> References: <005307> <1412461457-29061-1-git-send-email-nico@emutex.com> <209a96ce6067cf0b5239b8d9143fbb2a@statler.emutex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org To: =?iso-8859-1?Q?Nicol=E1s?= Pernas Maradei , f@hmsreliant.think-freely.org Return-path: Content-Disposition: inline In-Reply-To: <209a96ce6067cf0b5239b8d9143fbb2a-Cc/FPSX6RAUzc0FSMupyHtBPR1lH4CV8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Sun, Oct 05, 2014 at 07:37:11PM +0100, Nicol=E1s Pernas Maradei wrote: > Hi, >=20 > New in Patch v2: >=20 > - Fixes an issue in eth_dev_start/stop where a single interface was alw= ays > opened/closed even though pcap files had been selected for rx/tx stream= s. > - The link_status was not being properly updated in case of using a sin= gle > interface for rx/tx streams. >=20 > Nico. >=20 > On 2014-10-04 23:24, Nicol=E1s Pernas Maradei wrote: > >From: Nicol=E1s Pernas Maradei > > > >librte_pmd_pcap driver was opening the pcap/interfaces only at init ti= me > >and > >closing them only when the port was being stopped. This behaviour woul= d > >cause > >problems (leading to segfault) if the user closed the port 2 times. Th= e > >first > >time the pcap/interfaces would be normally closed but libpcap would th= row > >an > >error causing a segfault if the closed pcaps/interfaces were closed ag= ain. > >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=E1s Pernas Maradei Acked-by: Neil Horman