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

Dan Gora dg at adax.com
Thu Oct 18 21:00:00 CEST 2018


On Thu, Oct 18, 2018 at 10:44 AM Ferruh Yigit <ferruh.yigit at intel.com> 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
> application instead of polling but not sure if all drivers supports it.

Yeah I'm not really interested in implementing this to be honest.  I
really don't have time.

> Or what do you think storing the link status in sample application and call this
> function only if link status changed?

No, one of the major points of this API was to NOT have to carry
around this state in the application.

d


More information about the dev mailing list