Commit 8105378
net: rps: fix error when CONFIG_RFS_ACCEL is off
John Sperbeck reported that if we turn off CONFIG_RFS_ACCEL, the 'head'
is not defined, which will trigger compile error. So I move the 'head'
out of the CONFIG_RFS_ACCEL scope.
Fixes: 84b6823 ("net: rps: protect last_qtail with rps_input_queue_tail_save() helper")
Reported-by: John Sperbeck <jsperbeck@google.com>
Closes: https://lore.kernel.org/all/20240529203421.2432481-1-jsperbeck@google.com/
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240530032717.57787-1-kerneljasonxing@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 166fcf8 commit 8105378
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4516 | 4516 | | |
4517 | 4517 | | |
4518 | 4518 | | |
| 4519 | + | |
4519 | 4520 | | |
4520 | 4521 | | |
4521 | 4522 | | |
4522 | 4523 | | |
4523 | | - | |
4524 | 4524 | | |
| 4525 | + | |
4525 | 4526 | | |
4526 | 4527 | | |
4527 | 4528 | | |
| |||
0 commit comments