diff options
author | Maxim Mikityanskiy <maximmi@mellanox.com> | 2020-10-22 12:49:51 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2020-11-05 12:17:06 -0800 |
commit | 1a50cf9a67ff2241c2949d30bc11c8dd4280eef8 (patch) | |
tree | c1426f91a7957e7db696038293a96e03b258a2ac /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c5eb51adf06b2644fa28d4af886bfdcc53e288da (diff) |
net/mlx5e: Fix incorrect access of RCU-protected xdp_prog
rq->xdp_prog is RCU-protected and should be accessed only with
rcu_access_pointer for the NULL check in mlx5e_poll_rx_cq.
rq->xdp_prog may change on the fly only from one non-NULL value to
another non-NULL value, so the checks in mlx5e_xdp_handle and
mlx5e_poll_rx_cq will have the same result during one NAPI cycle,
meaning that no additional synchronization is needed.
Fixes: fe45386a2082 ("net/mlx5e: Use RCU to protect rq->xdp_prog")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions