ethdev: move non-offload capabilities
PATCH 1/1 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.
--- lib/librte_ethdev/rte_ethdev.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
lib/librte_ethdev/rte_ethdev.h +9 -8
@@ -1408,21 +1408,22 @@ struct rte_eth_conf {#define DEV_TX_OFFLOAD_IP_TNL_TSO 0x00080000/** Device supports outer UDP checksum */ #define DEV_TX_OFFLOAD_OUTER_UDP_CKSUM 0x00100000 -/** Device supports send on timestamp */ #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
Signature · 1 line
2.28.0
Quoted 4 lines · Thomas Monjalon
The definitions of
RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUPandRTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUPwere inserted before the last comment of Tx offloads.
Quoted 8 lines
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")Signed-off-by Thomas Monjalon <[email protected]>
Andrew Rybchenko
AppliedQuoted 9 lines · Andrew Rybchenko
Quoted 8 lines · Thomas Monjalon
The definitions of
RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUPandRTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUPwere 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.
Quoted 7 lines
Quoted 4 lines
Fixes cac923cfea47 ("ethdev: support runtime queue setup")Signed-off-by Thomas Monjalon <[email protected]>Acked-by Andrew Rybchenko <[email protected]>
Applied to dpdk-next-net/main, thanks.