Re: [dpdk-dev] [PATCH v4 1/6] kni: add API to set link status on kernel interface

2018-10-18 Thread Dan Gora
On Thu, Oct 18, 2018 at 10:44 AM Ferruh Yigit wrote: > > KNI sample application calls this API each 100ms, so this keeps writing > "carrier" file. > > What do you think writing to "carrier" file only if status changed? > > And it is possible to register to RTE_ETH_EVENT_INTR_LSC event in sample >

Re: [dpdk-dev] [PATCH v4 1/6] kni: add API to set link status on kernel interface

2018-10-18 Thread Ferruh Yigit
On 10/17/2018 2:04 AM, Dan Gora wrote: > Add a new API function to KNI, rte_kni_update_link() to allow DPDK > applications to update the link status for KNI network interfaces in > the linux kernel. > > Signed-off-by: Dan Gora > --- > lib/librte_kni/rte_kni.c | 41 +

[dpdk-dev] [PATCH v4 1/6] kni: add API to set link status on kernel interface

2018-10-16 Thread Dan Gora
Add a new API function to KNI, rte_kni_update_link() to allow DPDK applications to update the link status for KNI network interfaces in the linux kernel. Signed-off-by: Dan Gora --- lib/librte_kni/rte_kni.c | 41 ++ lib/librte_kni/rte_kni.h | 20 ++