[dpdk-dev] [PATCH] librte_ethdev: extend dpdk api led control to query capability

Ferruh Yigit ferruh.yigit at intel.com
Fri May 8 14:03:09 CEST 2020


On 1/8/2020 2:07 PM, Thomas Monjalon wrote:
> 08/01/2020 14:58, Laurent Hardy:
>> About the 'is_supported()' versions of APIs, in the current patch I 
>> factorize
>> the check on dev ops on and off availability in a same function named
>> "led_ctrl_capable" but I can rename it if required.
>>
>> Just in this specific case I don't dissociate on and off capability, as 
>> being
>> able to set the led off without a way to set it on again sounds a bit 
>> unusual :)
>>
>>> The other alternatives are in rte_eth_dev_info and dev_flags.
> 
> Basically we just need to decide whether we prefer a new function
> or a new flag.
> 
> Until now, capabilities were given in flags.
> Why a function here?
> 

Capabilities provided by dev_ops not given by flags, and I am not sure opening
that door.

Right now offload capabilities are given by flags, which has dedicated flag.
dev_flags is used more like status, it has things like 'DEV_BONDED_SLAVE',
'DEV_REPRESENTOR', etc.



More information about the dev mailing list