[PATCH v3] net/ice: fix DCF state checking mechanism

Zhang, Qi Z qi.z.zhang at intel.com
Sat May 21 04:17:04 CEST 2022



> -----Original Message-----
> From: Zhang, Peng1X <peng1x.zhang at intel.com>
> Sent: Saturday, May 21, 2022 2:31 AM
> To: Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z
> <qi.z.zhang at intel.com>; dev at dpdk.org
> Cc: Zhang, Peng1X <peng1x.zhang at intel.com>; stable at dpdk.org
> Subject: [PATCH v3] net/ice: fix DCF state checking mechanism
> 
> From: Peng Zhang <peng1x.zhang at intel.com>
> 
> DCF state previously checking mechanism cannot detect DCF state correctly in
> given situation,so PMD will report incorrect error code and mislead user. In this
> patch, DCF state checking mechanism is fixed through create or delete rule
> successfully or not. Then error code will be set as EAGAIN in given situation,
> while not EINVAL.

We should not assume the error code is always EAGAIN if any rule is rejected by the kernel PF driver, this will also mislead the application.
We need the kernel driver to return a clear error code, then DCF pass them to the application.



More information about the dev mailing list