summaryrefslogtreecommitdiff
path: root/include/ethsw.h
diff options
context:
space:
mode:
authorCodrin Ciubotariu <codrin.ciubotariu@freescale.com>2015-07-24 16:55:30 +0300
committerYork Sun <yorksun@freescale.com>2015-09-21 08:29:47 -0700
commit68c929da6bf754ace639b2159e2d5b9e22323aaa (patch)
tree0c4be2ff82ca86a48eeaee9d330e5318202ad89a /include/ethsw.h
parent86719f0cd55bc13186798217b08fa6a048eda27c (diff)
downloadu-boot-68c929da6bf754ace639b2159e2d5b9e22323aaa.tar.gz
drivers/net/vsc9953: Add commands to enable/disable HW learning
The command: ethsw [port <port_no>] learning { [help] | show | auto | disable } can be used to enable/disable HW learning on a port. This patch also adds this command to the generic ethsw parser from cmd_ethsw. Signed-off-by: Johnson Leung <johnson.leung@freescale.com> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@freescale.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/ethsw.h')
-rw-r--r--include/ethsw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ethsw.h b/include/ethsw.h
index 8f1c4145a1..6d2f0de61e 100644
--- a/include/ethsw.h
+++ b/include/ethsw.h
@@ -22,6 +22,8 @@ enum ethsw_keyword_id {
ethsw_id_disable,
ethsw_id_statistics,
ethsw_id_clear,
+ ethsw_id_learning,
+ ethsw_id_auto,
ethsw_id_count, /* keep last */
};
@@ -45,6 +47,8 @@ struct ethsw_command_func {
int (*port_show)(struct ethsw_command_def *parsed_cmd);
int (*port_stats)(struct ethsw_command_def *parsed_cmd);
int (*port_stats_clear)(struct ethsw_command_def *parsed_cmd);
+ int (*port_learn)(struct ethsw_command_def *parsed_cmd);
+ int (*port_learn_show)(struct ethsw_command_def *parsed_cmd);
};
int ethsw_define_functions(const struct ethsw_command_func *cmd_func);