Commit 75871a5
igb: Fix NULL pointer dereference in ethtool loopback test
The igb driver currently causes a NULL pointer dereference when executing
the ethtool loopback test. This occurs because there is no associated
q_vector for the test ring when it is set up, as interrupts are typically
not added to the test rings.
Since commit 5ef44b3 removed the napi_id assignment in
__xdp_rxq_info_reg(), there is no longer a need to pass a napi_id to it.
Therefore, simply use 0 as the last parameter.
Fixes: 2c61960 ("igb: Add AF_XDP zero-copy Rx support")
Reviewed-by: Aleksandr Loktionov <[email protected]>
Reviewed-by: Joe Damato <[email protected]>
Signed-off-by: Tianyu Xu <[email protected]>
Reviewed-by: Paul Menzel <[email protected]>
Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>1 parent e3c674d commit 75871a5
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4453 | 4453 | | |
4454 | 4454 | | |
4455 | 4455 | | |
4456 | | - | |
4457 | | - | |
| 4456 | + | |
4458 | 4457 | | |
4459 | 4458 | | |
4460 | 4459 | | |
| |||
0 commit comments