net: stmmac: move the EST structure to struct stmmac_priv
authorXiaolei Wang <xiaolei.wang@windriver.com>
Mon, 13 May 2024 01:43:46 +0000 (09:43 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 May 2024 01:33:10 +0000 (18:33 -0700)
commitbd17382ac36ed97848f1712714488e84c93605ca
tree3a7a3889774f41f8f0b9698c0fa4901ac4f0a762
parent36ac9e7f2e5786bd37c5cd91132e1f39c29b8197
net: stmmac: move the EST structure to struct stmmac_priv

Move the EST structure to struct stmmac_priv, because the
EST configs don't look like platform config, but EST is
enabled in runtime with the settings retrieved for the TC
TAPRIO feature also in runtime. So it's better to have the
EST-data preserved in the driver private data instead of
the platform data storage.

Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Link: https://lore.kernel.org/r/20240513014346.1718740-3-xiaolei.wang@windriver.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
include/linux/stmmac.h