net: dsa: sja1105: implement a common frame memory partitioning function
There are 2 different features that require some reserved frame memory space: VLAN retagging and virtual links. Create a central function that modifies the static config and ensures frame memory is never overcommitted. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
88cac0fa53
commit
aaa270c638
@@ -244,6 +244,8 @@ enum sja1105_reset_reason {
|
||||
int sja1105_static_config_reload(struct sja1105_private *priv,
|
||||
enum sja1105_reset_reason reason);
|
||||
|
||||
void sja1105_frame_memory_partitioning(struct sja1105_private *priv);
|
||||
|
||||
/* From sja1105_spi.c */
|
||||
int sja1105_xfer_buf(const struct sja1105_private *priv,
|
||||
sja1105_spi_rw_mode_t rw, u64 reg_addr,
|
||||
|
Reference in New Issue
Block a user