net: ethernet: ti: cpsw_ale: use regfields for number of Entries and Policers
authorRoger Quadros <rogerq@kernel.org>
Tue, 10 Sep 2024 09:24:00 +0000 (12:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Sep 2024 09:49:00 +0000 (10:49 +0100)
commit11cbcfeaa79e5c76cb3bce85dfc10de61b0b0a2b
tree4748571506c72258c3a06ee3766832c3cc2c3868
parentbbfc7e2b9ebe16669e33d9332275d87b660a3c8b
net: ethernet: ti: cpsw_ale: use regfields for number of Entries and Policers

Use regfields for number of ALE Entries and Policers.

The variants that support Policers/Classifiers have the number
of policers encoded in the ALE_STATUS register.

Use that and show the number of Policers in the ALE info message.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw_ale.c
drivers/net/ethernet/ti/cpsw_ale.h