net/gve: add struct members and typedefs for DQO
PATCH 1/1 net/gve: add struct members and typedefs for DQO
Add struct members for gve_tx_queue and gve_rx_queue. Add typedefs for little endians.
Signed-off-by Junfeng Guo <[email protected]>
Signed-off-by Rushil Gupta <[email protected]>
Signed-off-by Joshua Washington <[email protected]>
Signed-off-by Jeroen de Borst <[email protected]>
--- .mailmap | 1 + drivers/net/gve/base/gve_osdep.h | 4 ++++ drivers/net/gve/gve_ethdev.h | 9 +++++++++ 3 files changed, 14 insertions(+)
.mailmap +1 -0
@@ -590,6 +590,7 @@ Jens Freimann <[email protected]> <[email protected]> Jeremy Plsek <[email protected]> Jeremy Spewock <[email protected]> Jerin Jacob <[email protected]> <[email protected]> <[email protected]> +Jeroen de Borst <[email protected]> Jerome Jutteau <[email protected]> Jerry Hao OS <[email protected]> Jerry Lilijun <[email protected]>
drivers/net/gve/base/gve_osdep.h +4 -0
@@ -35,6 +35,10 @@ typedef rte_be16_t __be16;typedef rte_be32_t __be32 ;typedef rte_be64_t __be64 ; +typedef rte_le16_t __le16 ; +typedef rte_le32_t __le32 ; +typedef rte_le64_t __le64 ; +typedef rte_iova_t dma_addr_t ;#define ETH_MIN_MTU RTE_ETHER_MIN_MTU
drivers/net/gve/gve_ethdev.h +9 -0
@@ -11,6 +11,9 @@#include "base/gve.h" +/* TODO: this is a workaround to ensure that Tx complq is enough */ +#define DQO_TX_MULTIPLIER 4 +/* * Following macros are derived from linux/pci_regs.h, however, * we can't simply include that header here, as there is no such
@@ -124,6 +127,9 @@ struct gve_tx_queue {const struct rte_memzone *qres_mz;struct gve_queue_resources *qres; +/* newly added for DQO */ +uint64_t compl_ring_phys_addr; +/* Only valid for DQO_RDA queue format */ struct gve_tx_queue *complq;
@@ -164,6 +170,9 @@ struct gve_rx_queue {uint16_t ntfy_id;uint16_t rx_buf_len; +/* newly added for DQO */ +uint64_t compl_ring_phys_addr; +/* Only valid for DQO_RDA queue format */ struct gve_rx_queue *bufq;
Signature · 1 line
2.34.1
Ferruh Yigit
AppliedQuoted 7 lines · Junfeng Guo
Add struct members for
gve_tx_queueandgve_rx_queue. Add typedefs for little endians.Signed-off-by Junfeng Guo <[email protected]>Signed-off-by Rushil Gupta <[email protected]>Signed-off-by Joshua Washington <[email protected]>Signed-off-by Jeroen de Borst <[email protected]>
Applied to dpdk-next-net/main, thanks.