diff options
author | DENG Qingfang <dqfext@gmail.com> | 2021-10-16 14:24:14 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-18 13:22:21 +0100 |
commit | 342afce10d6f61c443c95e244f812d4766f73f53 (patch) | |
tree | fe85de461d6a2864a2ad68b7f5130a5a32cfad6a /net/sched/act_ct.c | |
parent | 66d262804a2276721eac86cf18fcd61046149193 (diff) | |
download | linux-342afce10d6f61c443c95e244f812d4766f73f53.tar.gz linux-342afce10d6f61c443c95e244f812d4766f73f53.tar.bz2 linux-342afce10d6f61c443c95e244f812d4766f73f53.zip |
net: dsa: mt7530: correct ds->num_ports
Setting ds->num_ports to DSA_MAX_PORTS made DSA core allocate unnecessary
dsa_port's and call mt7530_port_disable for non-existent ports.
Set it to MT7530_NUM_PORTS to fix that, and dsa_is_user_port check in
port_enable/disable is no longer required.
Cc: stable@vger.kernel.org
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_ct.c')
0 files changed, 0 insertions, 0 deletions