Home
last modified time | relevance | path

Searched hist:"4 ae2bb81" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dnet-sysfs.c4ae2bb81 Wed Dec 23 15:23:23 CST 2020 Antoine Tenart <atenart@kernel.org> net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc

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: 8af2c06ff4b1 ("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>