11.07.2020 14:27, Thomas Monjalon пишет: > 11/07/2020 12:43, Ivan Dyukov: >> +__rte_experimental >> +int rte_eth_link_printf(const char *const fmt, >> + const struct rte_eth_link *eth_link); >> > Maybe I missed your reply, > I still don't understand the need for this function. > > > > I used it few times in apps in this patchset. It allows to avoid code duplication in examples. i.e. declare array, call rte_eth_link_to_str, call printf.
It's simple and usefull function. Why not?