Add more annotation, to clearly tell the 'rte_eth_dev_info_get()' users that the buffer should be cleared first.
v2 changes: Add more annotation for 'rte_eth_dev_info_get()'. Signed-off-by: Helin Zhang <helin.zhang at intel.com> Reviewed-by: Jijiang Liu <jijiang.liu at intel.com> Reviewed-by: Cunming Liang <cunming.liang at intel.com> Reviewed-by: Jingjing Wu <jingjing.wu at intel.com> --- lib/librte_ether/rte_ethdev.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 60b24c5..2c5ab13 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -2120,7 +2120,8 @@ extern void rte_eth_macaddr_get(uint8_t port_id, struct ether_addr *mac_addr); * The port identifier of the Ethernet device. * @param dev_info * A pointer to a structure of type *rte_eth_dev_info* to be filled with - * the contextual information of the Ethernet device. + * the contextual information of the Ethernet device. The buffer should + * be cleared first, as it might not fill all fields. */ extern void rte_eth_dev_info_get(uint8_t port_id, struct rte_eth_dev_info *dev_info); -- 1.8.1.4