net: accept an empty mask in /sys/class/net/*/queues/rx-*/rps_cpus
authorEric Dumazet <edumazet@google.com>
Wed, 12 Aug 2020 01:34:40 +0000 (18:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Aug 2020 20:18:16 +0000 (13:18 -0700)
commit2e0d8fef5f76bce0887c73b824d9e625a08e7406
tree34030d3e8b5153aa60cf42f1163a96e3f111c06c
parentae8bd3021c34a40a5e63df90f6ac5a0efedc04fe
net: accept an empty mask in /sys/class/net/*/queues/rx-*/rps_cpus

We must accept an empty mask in store_rps_map(), or we are not able
to disable RPS on a queue.

Fixes: 07bbecb34106 ("net: Restrict receive packets queuing to housekeeping CPUs")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Maciej Żenczykowski <maze@google.com>
Cc: Alex Belits <abelits@marvell.com>
Cc: Nitesh Narayan Lal <nitesh@redhat.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Maciej Żenczykowski <maze@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Nitesh Narayan Lal <nitesh@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c