summaryrefslogtreecommitdiff
path: root/include/ethsw.h
diff options
context:
space:
mode:
authorCodrin Ciubotariu <codrin.ciubotariu@freescale.com>2015-07-24 16:55:35 +0300
committerYork Sun <yorksun@freescale.com>2015-09-21 08:29:48 -0700
commit5ed1bacd3402a3153c8306766ad099b2261ebe36 (patch)
tree716d2542009e03ac42f2e237f2c015dfa1b6a433 /include/ethsw.h
parent21d214fcd0a12c75ebb9c675f0f07b8e69f6cb44 (diff)
drivers/net/vsc9953: Add commands for VLAN ingress filtering
The command: ethsw [port <port_no>] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN ingress filtering on port can be used to enable/disable/show VLAN ingress filtering on a port. This command has also been added to the ethsw generic parser from common/cmd_ethsw.c 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 18d2b26b4bd..2d3c12a39e6 100644
--- a/include/ethsw.h
+++ b/include/ethsw.h
@@ -39,6 +39,8 @@ enum ethsw_keyword_id {
ethsw_id_classified,
ethsw_id_shared,
ethsw_id_private,
+ ethsw_id_ingress,
+ ethsw_id_filtering,
ethsw_id_count, /* keep last */
};
@@ -84,6 +86,8 @@ struct ethsw_command_func {
int (*port_egr_vlan_set)(struct ethsw_command_def *parsed_cmd);
int (*vlan_learn_show)(struct ethsw_command_def *parsed_cmd);
int (*vlan_learn_set)(struct ethsw_command_def *parsed_cmd);
+ int (*port_ingr_filt_show)(struct ethsw_command_def *parsed_cmd);
+ int (*port_ingr_filt_set)(struct ethsw_command_def *parsed_cmd);
};
int ethsw_define_functions(const struct ethsw_command_func *cmd_func);