diff options
author | Jiri Pirko <jiri@mellanox.com> | 2020-04-27 18:13:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-27 12:43:29 -0700 |
commit | 481ff57aadf5ea36bb3c5a9e659a2e1c5ecc6725 (patch) | |
tree | 49dd001b3dafd1445ac5a7cb56f33bc6b3218404 /ipc/msg.c | |
parent | dd0fbc89d274e392a077c5dc9a21d581de3252d1 (diff) |
mlxsw: spectrum: Avoid copying sample values and use RCU pointer direcly instead
Currently, only the psample_group is accessed using RCU on RX path.
However, it is possible (unlikely) that other sample values get change
during RX processing. Fix this by having the port->sample struct
accessed as RCU pointer, containing all sample values including
psample_group pointer. That avoids extra alloc per-port, copying the
values and the race condition described above.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions