Commit 1c14432d authored by Steen Hegelund's avatar Steen Hegelund Committed by David S. Miller

net: microchip: sparx5: Add TC template list to a port

This adds a list that is used to collect the templates that are active on a
port.

This allows the template creation to change the port configuration
and the template destruction to change it back.
Signed-off-by: default avatarSteen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bfcb94aa
...@@ -282,6 +282,7 @@ static int sparx5_create_port(struct sparx5 *sparx5, ...@@ -282,6 +282,7 @@ static int sparx5_create_port(struct sparx5 *sparx5,
spx5_port->phylink_pcs.poll = true; spx5_port->phylink_pcs.poll = true;
spx5_port->phylink_pcs.ops = &sparx5_phylink_pcs_ops; spx5_port->phylink_pcs.ops = &sparx5_phylink_pcs_ops;
spx5_port->is_mrouter = false; spx5_port->is_mrouter = false;
INIT_LIST_HEAD(&spx5_port->tc_templates);
sparx5->ports[config->portno] = spx5_port; sparx5->ports[config->portno] = spx5_port;
err = sparx5_port_init(sparx5, spx5_port, &config->conf); err = sparx5_port_init(sparx5, spx5_port, &config->conf);
......
...@@ -192,6 +192,7 @@ struct sparx5_port { ...@@ -192,6 +192,7 @@ struct sparx5_port {
u16 ts_id; u16 ts_id;
struct sk_buff_head tx_skbs; struct sk_buff_head tx_skbs;
bool is_mrouter; bool is_mrouter;
struct list_head tc_templates; /* list of TC templates on this port */
}; };
enum sparx5_core_clockfreq { enum sparx5_core_clockfreq {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment