]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: qca8k: add QCA8K_ATU_TABLE_SIZE define for fdb access
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 25 Jan 2023 20:35:16 +0000 (21:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2023 12:06:45 +0000 (12:06 +0000)
commite03cea60c3db8c6b011cc36ecef9281dff8377f3
treee8e0ad306564abcceb2585d4318b40f6d31b8dbd
parentb34fc158d56620fd2f5db40e39326424082b2683
net: dsa: qca8k: add QCA8K_ATU_TABLE_SIZE define for fdb access

Add and use QCA8K_ATU_TABLE_SIZE instead of hardcoding the ATU size with
a pure number and using sizeof on the array.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca/qca8k-common.c
drivers/net/dsa/qca/qca8k.h