Files
linux/net
Antoine Tenart e552fbd609 net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc
[ Upstream commit 4ae2bb8164 ]

Accesses to dev->xps_rxqs_map (when using dev->num_tc) should be
protected by the rtnl lock, like we do for netif_set_xps_queue. I didn't
see an actual bug being triggered, but let's be safe here and take the
rtnl lock while accessing the map in sysfs.

Fixes: 8af2c06ff4 ("net-sysfs: Add interface for Rx queue(s) map per Tx queue")
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 20:10:20 +01:00
..
2019-06-22 08:15:13 +02:00
2020-07-22 09:31:58 +02:00
2019-12-05 09:21:30 +01:00
2020-10-14 10:31:26 +02:00
2020-10-29 09:54:55 +01:00
2018-07-24 14:10:42 -07:00
2020-12-30 11:26:06 +01:00
2020-12-30 11:25:44 +01:00
2018-07-24 14:10:43 -07:00