Searched hist:"071271 f39ce833a3534d1fbd47174d1bed6d9326" (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_regs_defs.h | diff 071271f39ce833a3534d1fbd47174d1bed6d9326 Tue Jan 30 10:53:49 CET 2024 David Arinzon <darinzon@amazon.com> net: ena: Add more information on TX timeouts
The function responsible for polling TX completions might not receive the CPU resources it needs due to higher priority tasks running on the requested core.
The driver might not be able to recognize such cases, but it can use its state to suspect that they happened. If both conditions are met:
- napi hasn't been executed more than the TX completion timeout value - napi is scheduled (meaning that we've received an interrupt)
Then it's more likely that the napi handler isn't scheduled because of an overloaded CPU. It was decided that for this case, the driver would wait twice as long as the regular timeout before scheduling a reset. The driver uses ENA_REGS_RESET_SUSPECTED_POLL_STARVATION reset reason to indicate this case to the device.
This patch also adds more information to the ena_tx_timeout() callback. This function is called by the kernel when it detects that a specific TX queue has been closed for too long.
Signed-off-by: Shay Agroskin <shayagr@amazon.com> Signed-off-by: David Arinzon <darinzon@amazon.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
H A D | ena_netdev.c | diff 071271f39ce833a3534d1fbd47174d1bed6d9326 Tue Jan 30 10:53:49 CET 2024 David Arinzon <darinzon@amazon.com> net: ena: Add more information on TX timeouts
The function responsible for polling TX completions might not receive the CPU resources it needs due to higher priority tasks running on the requested core.
The driver might not be able to recognize such cases, but it can use its state to suspect that they happened. If both conditions are met:
- napi hasn't been executed more than the TX completion timeout value - napi is scheduled (meaning that we've received an interrupt)
Then it's more likely that the napi handler isn't scheduled because of an overloaded CPU. It was decided that for this case, the driver would wait twice as long as the regular timeout before scheduling a reset. The driver uses ENA_REGS_RESET_SUSPECTED_POLL_STARVATION reset reason to indicate this case to the device.
This patch also adds more information to the ena_tx_timeout() callback. This function is called by the kernel when it detects that a specific TX queue has been closed for too long.
Signed-off-by: Shay Agroskin <shayagr@amazon.com> Signed-off-by: David Arinzon <darinzon@amazon.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|