Lines Matching defs:acl_t

71 static int mlx5_vacl_table_allow_vlan(void *acl_t, u16 vlan)
73 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
127 static int mlx5_vacl_table_apply_loopback_filter(void *acl_t, u16 new_action)
129 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
183 static int mlx5_vacl_table_apply_default(void *acl_t, u16 new_action)
185 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
230 static int mlx5_vacl_table_apply_untagged(void *acl_t, u16 new_action)
232 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
289 static int mlx5_vacl_table_apply_unknown_vlan(void *acl_t, u16 new_action)
291 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
348 static int mlx5_vacl_table_apply_vlan_filter(void *acl_t)
350 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
362 err = mlx5_vacl_table_allow_vlan(acl_t, index);
381 static void mlx5_vacl_table_disapply_vlan_filter(void *acl_t)
383 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
400 static void mlx5_vacl_table_disapply_all_filters(void *acl_t)
402 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
425 mlx5_vacl_table_disapply_vlan_filter(acl_t);
430 static int mlx5_vacl_table_apply_all_filters(void *acl_t)
432 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
466 err = mlx5_vacl_table_apply_vlan_filter(acl_t);
474 mlx5_vacl_table_disapply_all_filters(acl_t);
480 static void mlx5_vacl_table_destroy_ft(void *acl_t)
482 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
484 mlx5_vacl_table_disapply_all_filters(acl_t);
490 static int mlx5_vacl_table_create_ft(void *acl_t, bool spoofchk)
492 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
610 err = mlx5_vacl_table_apply_all_filters(acl_t);
683 void mlx5_vacl_table_cleanup(void *acl_t)
685 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
687 mlx5_vacl_table_destroy_ft(acl_t);
693 int mlx5_vacl_table_add_vlan(void *acl_t, u16 vlan)
695 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
704 err = mlx5_vacl_table_allow_vlan(acl_t, vlan);
718 void mlx5_vacl_table_del_vlan(void *acl_t, u16 vlan)
720 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
735 int mlx5_vacl_table_enable_vlan_filter(void *acl_t)
737 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
740 return mlx5_vacl_table_apply_vlan_filter(acl_t);
744 void mlx5_vacl_table_disable_vlan_filter(void *acl_t)
746 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
749 mlx5_vacl_table_disapply_vlan_filter(acl_t);
753 int mlx5_vacl_table_drop_untagged(void *acl_t)
755 return mlx5_vacl_table_apply_untagged(acl_t,
760 int mlx5_vacl_table_allow_untagged(void *acl_t)
762 return mlx5_vacl_table_apply_untagged(acl_t,
767 int mlx5_vacl_table_drop_unknown_vlan(void *acl_t)
769 return mlx5_vacl_table_apply_unknown_vlan(acl_t,
774 int mlx5_vacl_table_allow_unknown_vlan(void *acl_t)
776 return mlx5_vacl_table_apply_unknown_vlan(acl_t,
781 int mlx5_vacl_table_set_spoofchk(void *acl_t, bool spoofchk, u8 *vport_mac)
783 struct mlx5_vacl_table *acl_table = (struct mlx5_vacl_table *)acl_t;
794 mlx5_vacl_table_destroy_ft(acl_t);
795 err = mlx5_vacl_table_create_ft(acl_t, spoofchk);
797 mlx5_vacl_table_disapply_all_filters(acl_t);
798 err = mlx5_vacl_table_apply_all_filters(acl_t);