gve: simplify setting decriptor count defaults
authorHarshitha Ramamurthy <hramamurthy@google.com>
Mon, 1 Apr 2024 23:45:26 +0000 (23:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Apr 2024 10:11:15 +0000 (11:11 +0100)
commit4cbc70f6ec5e06f93e617d3f2d7f8dc47c0c9067
treeecc6843f5f7e5239480eaf3ea0cac41949807259
parent4c6ce450a8bb4bdf71959fd226414b079f0f0e02
gve: simplify setting decriptor count defaults

Combine the gve_set_desc_cnt and gve_set_desc_cnt_dqo into
one function which sets the counts after checking the queue
format. Both the functions in the previous code and the new
combined function never return an error so make the new
function void and remove the goto on error.

Also rename the new function to gve_set_default_desc_cnt to
be clearer about its intention.

Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_adminq.c