diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-15 08:17:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-07-15 08:17:42 +0000 |
commit | 5682fd98b7b89e63b045fa122d1624869952ea37 (patch) | |
tree | ef5d0b9768c8262a78dc8abc977db59cd9be9a53 /target/linux/generic/files/drivers/net/phy/ar8327.c | |
parent | 507685b8a5d96fddb9259cb9621f28e59b705ab9 (diff) | |
download | master-187ad058-5682fd98b7b89e63b045fa122d1624869952ea37.tar.gz master-187ad058-5682fd98b7b89e63b045fa122d1624869952ea37.tar.bz2 master-187ad058-5682fd98b7b89e63b045fa122d1624869952ea37.zip |
ar8216: add swconfig attributes for ARL table flushing
Add swconfig attributes for flushing the ARL table globally or per port.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46382 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8327.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8327.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c index fd4a2626ed..1802b9ead7 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8327.c +++ b/target/linux/generic/files/drivers/net/phy/ar8327.c @@ -1138,6 +1138,12 @@ static const struct switch_attr ar8327_sw_attr_globals[] = { .set = NULL, .get = ar8xxx_sw_get_arl_table, }, + { + .type = SWITCH_TYPE_NOVAL, + .name = "flush_arl_table", + .description = "Flush ARL table", + .set = ar8xxx_sw_set_flush_arl_table, + }, }; static const struct switch_attr ar8327_sw_attr_port[] = { @@ -1162,6 +1168,12 @@ static const struct switch_attr ar8327_sw_attr_port[] = { .get = ar8327_sw_get_eee, .max = 1, }, + { + .type = SWITCH_TYPE_NOVAL, + .name = "flush_arl_table", + .description = "Flush port's ARL table entries", + .set = ar8xxx_sw_set_flush_port_arl_table, + }, }; static const struct switch_dev_ops ar8327_sw_ops = { |