Lines Matching refs:untagging_rule
132 struct ocelot_vcap_filter *untagging_rule, *redirect_rule;
138 untagging_rule = kzalloc(sizeof(struct ocelot_vcap_filter), GFP_KERNEL);
139 if (!untagging_rule)
144 kfree(untagging_rule);
150 untagging_rule->key_type = OCELOT_VCAP_KEY_ANY;
151 untagging_rule->ingress_port_mask = cpu_ports;
152 untagging_rule->vlan.vid.value = vid;
153 untagging_rule->vlan.vid.mask = VLAN_VID_MASK;
154 untagging_rule->prio = 1;
155 untagging_rule->id.cookie = cookie;
156 untagging_rule->id.tc_offload = false;
157 untagging_rule->block_id = VCAP_IS1;
158 untagging_rule->type = OCELOT_VCAP_FILTER_OFFLOAD;
159 untagging_rule->lookup = 0;
160 untagging_rule->action.vlan_pop_cnt_ena = true;
161 untagging_rule->action.vlan_pop_cnt = 1;
162 untagging_rule->action.pag_override_mask = 0xff;
163 untagging_rule->action.pag_val = port;
165 err = ocelot_vcap_filter_add(ocelot, untagging_rule, NULL);
167 kfree(untagging_rule);
188 ocelot_vcap_filter_del(ocelot, untagging_rule);
198 struct ocelot_vcap_filter *untagging_rule, *redirect_rule;
209 untagging_rule = ocelot_vcap_block_find_filter_by_id(block_vcap_is1,
211 if (!untagging_rule)
214 err = ocelot_vcap_filter_del(ocelot, untagging_rule);