From: Thomas Monjalon Date: Tue, 27 Oct 2020 13:20:22 +0000 (+0100) Subject: ethdev: move non-offload capabilities X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e9ef7ec12be0764924b6eebfe2f00b15ed0345ff;p=dpdk.git ethdev: move non-offload capabilities The definitions of RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP and RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP were inserted before the last comment of Tx offloads. It is moved in a better place, with comments moved to be before the definition. A group comment is added to better describe device capabilities. Fixes: cac923cfea47 ("ethdev: support runtime queue setup") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon Acked-by: Andrew Rybchenko --- diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index f689550745..619cbe521e 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -1419,18 +1419,20 @@ struct rte_eth_conf { * The mbuf field and flag are registered when the offload is configured. */ #define DEV_TX_OFFLOAD_SEND_ON_TIMESTAMP 0x00200000 - - -#define RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP 0x00000001 -/**< Device supports Rx queue setup after device started*/ -#define RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP 0x00000002 -/**< Device supports Tx queue setup after device started*/ - /* * If new Tx offload capabilities are defined, they also must be * mentioned in rte_tx_offload_names in rte_ethdev.c file. */ +/**@{@name Device capabilities + * Non-offload capabilities reported in rte_eth_dev_info.dev_capa. + */ +/** Device supports Rx queue setup after device started. */ +#define RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP 0x00000001 +/** Device supports Tx queue setup after device started. */ +#define RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP 0x00000002 +/**@}*/ + /* * Fallback default preferred Rx/Tx port parameters. * These are used if an application requests default parameters