net: dsa: qca8k: Add define for port VID
authorJonathan McDowell <noodles@earth.li>
Sat, 1 Aug 2020 17:05:54 +0000 (18:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:45:39 +0000 (15:45 -0700)
commite9d204fde5fd7d8ca1d6490d1b5c3d8d963bcd1a
tree6bb6bbd78e2e7d32562adb38ba1aecf3f117334f
parentac6d1835ca964b053f051ecedd44ecb3de0f1b33
net: dsa: qca8k: Add define for port VID

Rather than using a magic value of 1 when configuring the port VIDs add
a QCA8K_PORT_VID_DEF define and use that instead. Also fix up the
bitmask in the process; the top 4 bits are reserved so this wasn't a
problem, but only masking 12 bits is the correct approach.

Signed-off-by: Jonathan McDowell <noodles@earth.li>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h