OSDN Git Service

net: ena: Recalculate TX state variables every device reset
authorShay Agroskin <shayagr@amazon.com>
Thu, 23 Mar 2023 16:36:08 +0000 (18:36 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Mar 2023 02:49:59 +0000 (19:49 -0700)
commita416cb254d35d1e53ab3d4cbb81ea3835e5a10fd
tree759a350378b8098f777b115e88418ca801d7631c
parent1e36668886882d51641bd57ae659e678b3f1ca9c
net: ena: Recalculate TX state variables every device reset

With the ability to modify LLQ entry size, the size of packet's
payload that can be written directly to the device changes.
This patch makes the driver recalculate this information every device
negotiation (also called device reset).

Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amazon/ena/ena_netdev.c