On Thu, Oct 18, 2018 at 10:44 AM Ferruh Yigit <ferruh.yi...@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