]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: introduce qca8k_bulk_read/write function
authorAnsuel Smith <ansuelsmth@gmail.com>
Wed, 2 Feb 2022 00:03:35 +0000 (01:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Feb 2022 14:44:00 +0000 (14:44 +0000)
commitb66a20ec3679cde004d432faa2ebd7988b60134c
tree578ffa150c71a5074d8f5c957068abe339edc334
parent57b05699e6d5ed61bd695b0179fb4c28b8e48e4a
net: dsa: qca8k: introduce qca8k_bulk_read/write function

Introduce qca8k_bulk_read/write() function to use mgmt Ethernet way to
read/write packet in bulk. Make use of this new function in the fdb
function and while at it reduce the reg for fdb_read from 4 to 3 as the
max bit for the ARL(fdb) table is 83 bits.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c