gve: Define config structs for queue allocation
authorShailend Chand <shailend@google.com>
Mon, 22 Jan 2024 18:26:27 +0000 (18:26 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 Jan 2024 01:41:30 +0000 (17:41 -0800)
commit7cea48b9a4b2433a59826ee7cdb594faab3ac1e7
tree14af4d9543cf9ceba66245b69159d9751b0c7bce
parent20df28fb5bd8081a05ec34542bd45e4f3feeced5
gve: Define config structs for queue allocation

Queue allocation functions currently can only allocate into priv and
free memory in priv. These new structs would be passed into the queue
functions in a subsequent change to make them capable of returning newly
allocated resources and not just writing them into priv. They also make
it possible to allocate resources for queues with a different config
than that of the currently active queues.

Signed-off-by: Shailend Chand <shailend@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Jeroen de Borst <jeroendb@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240122182632.1102721-2-shailend@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve.h