diff options
author | Praveen Kaligineedi <pkaligineedi@google.com> | 2023-03-15 16:33:08 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-17 08:29:20 +0000 |
commit | 2e80aeae9f807ac7e967dea7633abea5829c6531 (patch) | |
tree | 1c1f98df61b93ad11131d92b468498725327fad2 /drivers/net/ethernet/google/gve/gve.h | |
parent | ec4040ae5fd058fe06a9dbe4161abc2829669e36 (diff) |
gve: XDP support GQI-QPL: helper function changes
This patch adds/modifies helper functions needed to add XDP
support.
Signed-off-by: Praveen Kaligineedi <pkaligineedi@google.com>
Reviewed-by: Jeroen de Borst <jeroendb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/google/gve/gve.h')
-rw-r--r-- | drivers/net/ethernet/google/gve/gve.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/google/gve/gve.h b/drivers/net/ethernet/google/gve/gve.h index 64eb0442c82f..f52f23198278 100644 --- a/drivers/net/ethernet/google/gve/gve.h +++ b/drivers/net/ethernet/google/gve/gve.h @@ -855,6 +855,11 @@ static inline bool gve_is_gqi(struct gve_priv *priv) priv->queue_format == GVE_GQI_QPL_FORMAT; } +static inline u32 gve_num_tx_queues(struct gve_priv *priv) +{ + return priv->tx_cfg.num_queues; +} + /* buffers */ int gve_alloc_page(struct gve_priv *priv, struct device *dev, struct page **page, dma_addr_t *dma, |