]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: Remove ena_calc_queue_size_ctx struct
authorArthur Kiyanovski <akiyano@amazon.com>
Fri, 7 Jan 2022 20:23:43 +0000 (20:23 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Jan 2022 03:25:51 +0000 (19:25 -0800)
commitb7616d4f6bccc99ef7c49fde07647ff93735cccc
tree71dbbebfbb04aa8c4328a2844d64d82d0828121a
parent41fa227446e2a824b025203a53cb590a5030474b
net: ena: Remove ena_calc_queue_size_ctx struct

This struct was used to pass data from callee function to its caller.
Its usage can be avoided.

Removing it results in less code without any damage to code readability.
Also it allows to consolidate ring size calculation into a single
function (ena_calc_io_queue_size()).

Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h