diff options
author | Arun Ramadoss <arun.ramadoss@microchip.com> | 2022-07-01 18:09:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-02 18:34:05 +0300 |
commit | ab8823688f9e4adb0d423d5659df619806c8d15c (patch) | |
tree | 5cfee6bb13e7eb41473cb2f8f226cb1e20b6fc54 /drivers/net/dsa/microchip/lan937x_reg.h | |
parent | a50b35366c646ed6735d996480f57d8d16e707ff (diff) | |
download | linux-ab8823688f9e4adb0d423d5659df619806c8d15c.tar.xz |
net: dsa: microchip: lan937x: add MTU and fast_age support
This patch add the support for port_max_mtu, port_change_mtu and
port_fast_age dsa functionality.
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/lan937x_reg.h')
-rw-r--r-- | drivers/net/dsa/microchip/lan937x_reg.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/lan937x_reg.h b/drivers/net/dsa/microchip/lan937x_reg.h index 7a0fa2595950..19f3aa344228 100644 --- a/drivers/net/dsa/microchip/lan937x_reg.h +++ b/drivers/net/dsa/microchip/lan937x_reg.h @@ -149,6 +149,9 @@ #define PORT_BACK_PRESSURE BIT(3) #define PORT_PASS_ALL BIT(0) +#define PORT_MAX_FR_SIZE 0x404 +#define FR_MIN_SIZE 1522 + /* 8 - Classification and Policing */ #define REG_PORT_MRI_PRIO_CTRL 0x0801 #define PORT_HIGHEST_PRIO BIT(7) @@ -161,4 +164,6 @@ #define P_PRIO_CTRL REG_PORT_MRI_PRIO_CTRL +#define LAN937X_TAG_LEN 2 + #endif |