path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
authorYongseok Koh <>2018-01-09 09:38:50 -0800
committerFerruh Yigit <>2018-01-16 18:47:49 +0100
commitd27fb0de2f2ae072f2dbdb236c1d10bd2b19b28f (patch)
treeb53a0ac9c725adac8fda4dcfb90c82930aea446c /drivers/net/mlx5/mlx5_trigger.c
parent2ebf5f7e925a184b3936b546a3b81ef2b873f95e (diff)
net/mlx5: fix overwriting bit-fields in SW Rx queue
Bit-fields in mlx5_rxq_data can be changed on the fly by a control plane - e.g. rxq->mark. However, vectorized Rx uses a bit-field to mark pending errors. Even if one bit is written, consequence is to write the whole integer and this can cause a synchronization issue - two entities write to a same block without locking. As the pending_err bit is entirely internal use for the datapath, this can be replaced with a local variable. Fixes: 6cb559d67b83 ("net/mlx5: add vectorized Rx/Tx burst for x86") Fixes: 570acdb1da8a ("net/mlx5: add vectorized Rx/Tx burst for ARM") Cc: Signed-off-by: Yongseok Koh <>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
0 files changed, 0 insertions, 0 deletions