summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/google/gve/gve.h
diff options
context:
space:
mode:
authorHarshitha Ramamurthy <hramamurthy@google.com>2024-04-01 23:45:26 +0000
committerDavid S. Miller <davem@davemloft.net>2024-04-03 11:11:15 +0100
commit4cbc70f6ec5e06f93e617d3f2d7f8dc47c0c9067 (patch)
treeecc6843f5f7e5239480eaf3ea0cac41949807259 /drivers/net/ethernet/google/gve/gve.h
parent4c6ce450a8bb4bdf71959fd226414b079f0f0e02 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/google/gve/gve.h')
0 files changed, 0 insertions, 0 deletions