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?