diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-07-27 13:35:10 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-29 07:24:37 +0200 |
commit | 3bb0844e7bcd0fb0bcfab6202b5edd349ef5250a (patch) | |
tree | 01d5e4da4ad6d0868003df6c0e0b7c978eef12ea /drivers/net/dsa/qca/qca8k.h | |
parent | firewire: net: Make use of get_unaligned_be48(), put_unaligned_be48() (diff) | |
download | linux-3bb0844e7bcd0fb0bcfab6202b5edd349ef5250a.tar.xz linux-3bb0844e7bcd0fb0bcfab6202b5edd349ef5250a.zip |
net: dsa: qca8k: cache match data to speed up access
Using of_device_get_match_data is expensive. Cache match data to speed
up access and rework user of match data to use the new cached value.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dsa/qca/qca8k.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca/qca8k.h b/drivers/net/dsa/qca/qca8k.h index ec58d0e80a70..0b990b46890a 100644 --- a/drivers/net/dsa/qca/qca8k.h +++ b/drivers/net/dsa/qca/qca8k.h @@ -401,6 +401,7 @@ struct qca8k_priv { struct qca8k_mdio_cache mdio_cache; struct qca8k_pcs pcs_port_0; struct qca8k_pcs pcs_port_6; + const struct qca8k_match_data *info; }; struct qca8k_mib_desc { |