Commit 78e8311
committed
Merge branch 'net-rps-lockless'
Jason Xing says:
====================
locklessly protect left members in struct rps_dev_flow
From: Jason Xing <kernelxing@tencent.com>
Since Eric did a more complicated locklessly change to last_qtail
member[1] in struct rps_dev_flow, the left members are easier to change
as the same.
One thing important I would like to share by qooting Eric:
"rflow is located in rxqueue->rps_flow_table, it is thus private to current
thread. Only one cpu can service an RX queue at a time."
So we only pay attention to the reader in the rps_may_expire_flow() and
writer in the set_rps_cpu(). They are in the two different contexts.
[1]:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=3b4cf29bdab
v3
Link: https://lore.kernel.org/all/20240417062721.45652-1-kerneljasonxing@gmail.com/
1. adjust the protection in a right way (Eric)
v2
1. fix passing wrong type qtail.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4507 | 4507 | | |
4508 | 4508 | | |
4509 | 4509 | | |
4510 | | - | |
| 4510 | + | |
4511 | 4511 | | |
4512 | 4512 | | |
4513 | 4513 | | |
| |||
4530 | 4530 | | |
4531 | 4531 | | |
4532 | 4532 | | |
4533 | | - | |
4534 | | - | |
4535 | | - | |
| 4533 | + | |
| 4534 | + | |
| 4535 | + | |
4536 | 4536 | | |
4537 | 4537 | | |
4538 | | - | |
4539 | | - | |
| 4538 | + | |
| 4539 | + | |
4540 | 4540 | | |
4541 | 4541 | | |
4542 | | - | |
| 4542 | + | |
4543 | 4543 | | |
4544 | 4544 | | |
4545 | 4545 | | |
| |||
4619 | 4619 | | |
4620 | 4620 | | |
4621 | 4621 | | |
4622 | | - | |
| 4622 | + | |
4623 | 4623 | | |
4624 | 4624 | | |
4625 | 4625 | | |
| |||
4672 | 4672 | | |
4673 | 4673 | | |
4674 | 4674 | | |
4675 | | - | |
| 4675 | + | |
4676 | 4676 | | |
4677 | 4677 | | |
4678 | 4678 | | |
| |||
0 commit comments