[dpdk-dev] [PATCH v3] net/af_xdp: support need wakeup feature

Ye Xiaolong xiaolong.ye at intel.com
Fri Jun 28 10:35:39 CEST 2019


Hi, Ferruh

On 06/27, Ferruh Yigit wrote:
>On 6/21/2019 2:19 PM, Xiaolong Ye wrote:
>> This patch enables need_wakeup flag for Tx and fill rings, when this flag
>> is set by the driver, it means that the userspace application has to
>> explicitly wake up the kernel Rx or kernel Tx processing by issuing a
>> syscall. Poll() can wake up both and sendto() or its alternatives will wake
>> up Tx processing only.
>> 
>> This feature is to provide efficient support for case that application and
>> driver executing on the same core.
>> 
>> Signed-off-by: Xiaolong Ye <xiaolong.ye at intel.com>
>> ---
>> v3 changes:
>> 
>> 1. add introduction in 19.08 release note
>> 
>> v2 changes:
>> 
>> 1. remove need_wakeup devarg to make need_wakeup feature enabled
>>    unconditionally.
>> 2. add conditional compilation directive to avoid breaking build with
>>    kernel which doesn't support need_wakeup feature yet.
>> 
>> Note:
>> 
>> Original busy poll feature has morphed into need_wakeup flag in
>> kernel side, the main purpose is the same, that is to support both
>> application and driver executing on the same core efficiently.
>>  doc/guides/rel_notes/release_19_08.rst |  2 ++
>>  drivers/net/af_xdp/rte_eth_af_xdp.c    | 41 +++++++++++++++++++-------
>
>Hi Xiaolong,
>
>Can you please document this feature in af_xdp documentation? And if there
>specific kernel version requirement for this, can you please add this
>information too?

Got it, will do in next version.

Thanks,
Xiaolong
>


More information about the dev mailing list