| 9fc237f8 | 03-Jun-2026 |
Justin Lai <justinlai0215@realtek.com> |
rtase: Avoid sleeping in get_stats64()
The .ndo_get_stats64 callback must not sleep because it can be called when reading /proc/net/dev.
rtase_get_stats64() calls rtase_dump_tally_counter(), which
rtase: Avoid sleeping in get_stats64()
The .ndo_get_stats64 callback must not sleep because it can be called when reading /proc/net/dev.
rtase_get_stats64() calls rtase_dump_tally_counter(), which polls the tally counter dump bit with read_poll_timeout(). This may sleep while waiting for the hardware counter dump to complete.
Use read_poll_timeout_atomic() instead to avoid sleeping in the get_stats64() path.
Fixes: 079600489960 ("rtase: Implement net_device_ops") Cc: stable@vger.kernel.org Signed-off-by: Justin Lai <justinlai0215@realtek.com> Link: https://patch.msgid.link/20260603061816.31356-1-justinlai0215@realtek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
| 8d672a3e | 16-Jun-2025 |
Justin Lai <justinlai0215@realtek.com> |
rtase: Link queues to NAPI instances
Link queues to NAPI instances with netif_queue_set_napi. This information can be queried with the netdev-genl API.
Signed-off-by: Justin Lai <justinlai0215@real
rtase: Link queues to NAPI instances
Link queues to NAPI instances with netif_queue_set_napi. This information can be queried with the netdev-genl API.
Signed-off-by: Justin Lai <justinlai0215@realtek.com> Reviewed-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20250616032226.7318-3-justinlai0215@realtek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
| a01cfcfd | 20-Nov-2024 |
Justin Lai <justinlai0215@realtek.com> |
rtase: Corrects error handling of the rtase_check_mac_version_valid()
Previously, when the hardware version ID was determined to be invalid, only an error message was printed without any further han
rtase: Corrects error handling of the rtase_check_mac_version_valid()
Previously, when the hardware version ID was determined to be invalid, only an error message was printed without any further handling. Therefore, this patch makes the necessary corrections to address this.
Fixes: a36e9f5cfe9e ("rtase: Add support for a pci table in this module") Signed-off-by: Justin Lai <justinlai0215@realtek.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
| c1fc14c4 | 20-Nov-2024 |
Justin Lai <justinlai0215@realtek.com> |
rtase: Correct the speed for RTL907XD-V1
Previously, the reported speed was uniformly set to SPEED_5000, but the RTL907XD-V1 actually operates at a speed of SPEED_10000. Therefore, this patch makes
rtase: Correct the speed for RTL907XD-V1
Previously, the reported speed was uniformly set to SPEED_5000, but the RTL907XD-V1 actually operates at a speed of SPEED_10000. Therefore, this patch makes the necessary correction.
Fixes: dd7f17c40fd1 ("rtase: Implement ethtool function") Signed-off-by: Justin Lai <justinlai0215@realtek.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
| 39007e1c | 14-Nov-2024 |
Justin Lai <justinlai0215@realtek.com> |
rtase: Modify the content format of the enum rtase_registers
Remove unnecessary spaces.
Signed-off-by: Justin Lai <justinlai0215@realtek.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: http
rtase: Modify the content format of the enum rtase_registers
Remove unnecessary spaces.
Signed-off-by: Justin Lai <justinlai0215@realtek.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20241114112549.376101-3-justinlai0215@realtek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
| 14cb81d1 | 04-Sep-2024 |
Justin Lai <justinlai0215@realtek.com> |
rtase: Add a Makefile in the rtase folder
Add a Makefile in the rtase folder to build rtase driver.
Signed-off-by: Justin Lai <justinlai0215@realtek.com> Link: https://patch.msgid.link/202409040321
rtase: Add a Makefile in the rtase folder
Add a Makefile in the rtase folder to build rtase driver.
Signed-off-by: Justin Lai <justinlai0215@realtek.com> Link: https://patch.msgid.link/20240904032114.247117-12-justinlai0215@realtek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|