Re: [dpdk-dev] [PATCH] examples/kni: fix crash while handling userspace request

2019-01-17 Thread Thomas Monjalon
> > When KNI interface receives RTE_KNI_REQ_CFG_NETWORK_IF request, it > > stap/start the physical device which as a result of stop() can free all the > > mbufs in > > its queue. > > Meanwhile sample application continues to read from KNI interface queues and > > push into device queues. This simu

Re: [dpdk-dev] [PATCH] examples/kni: fix crash while handling userspace request

2019-01-15 Thread Phil Yang (Arm Technology China)
Hi Ferruh, > -Original Message- > From: Ferruh Yigit > Sent: Wednesday, January 16, 2019 1:28 AM > To: dev@dpdk.org > Cc: sta...@dpdk.org; he.qia...@zte.com.cn; Igor Ryzhov > ; Phil Yang (Arm Technology China) > ; Dan Gora > Subject: [PATCH] examples/kni: fix crash while handling userspa

[dpdk-dev] [PATCH] examples/kni: fix crash while handling userspace request

2019-01-15 Thread Ferruh Yigit
When KNI interface receives RTE_KNI_REQ_CFG_NETWORK_IF request, it stap/start the physical device which as a result of stop() can free all the mbufs in its queue. Meanwhile sample application continues to read from KNI interface queues and push into device queues. This simultaneous access may cause