[dpdk-dev] [PATCH 3/5] app/testpmd: add missing transmit errors stats

Ananyev, Konstantin konstantin.ananyev at intel.com
Fri Feb 15 19:42:55 CET 2019


>>> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of David Marchand
>>> I am also for option 2 especially because of this.
>>> A driver that refuses a packet for reason X (which is a limitation, or an
>>> incorrect config or whatever that is not a transient condition) but gives
>>> it back to the application is a bad driver.

>>Why? What.s wrong to leave it to the upper layer to decide what to
>>do with the packets that can't be sent (by one reason or another)?

>How does the upper layer know if this is a transient state or something that can't be resolved?

Via rte_errno, for example.


More information about the dev mailing list