Lines Matching refs:key

51 		rule->key.type = SJA1105_KEY_BCAST;  in sja1105_setup_bcast_policer()
122 rule->key.type = SJA1105_KEY_TC; in sja1105_setup_tc_policer()
123 rule->key.tc.pcp = tc; in sja1105_setup_tc_policer()
177 struct sja1105_key *key, in sja1105_flower_policer() argument
181 switch (key->type) { in sja1105_flower_policer()
187 key->tc.pcp, rate_bytes_per_sec, in sja1105_flower_policer()
198 struct sja1105_key *key) in sja1105_flower_parse_key() argument
221 if (match.key->n_proto) { in sja1105_flower_parse_key()
235 if (!ether_addr_equal_masked(match.key->src, null, in sja1105_flower_parse_key()
248 dmac = ether_addr_to_u64(match.key->dst); in sja1105_flower_parse_key()
249 is_bcast_dmac = ether_addr_equal(match.key->dst, bcast); in sja1105_flower_parse_key()
272 vid = match.key->vlan_id; in sja1105_flower_parse_key()
274 pcp = match.key->vlan_priority; in sja1105_flower_parse_key()
278 key->type = SJA1105_KEY_BCAST; in sja1105_flower_parse_key()
282 key->type = SJA1105_KEY_TC; in sja1105_flower_parse_key()
283 key->tc.pcp = pcp; in sja1105_flower_parse_key()
287 key->type = SJA1105_KEY_VLAN_AWARE_VL; in sja1105_flower_parse_key()
288 key->vl.dmac = dmac; in sja1105_flower_parse_key()
289 key->vl.vid = vid; in sja1105_flower_parse_key()
290 key->vl.pcp = pcp; in sja1105_flower_parse_key()
294 key->type = SJA1105_KEY_VLAN_UNAWARE_VL; in sja1105_flower_parse_key()
295 key->vl.dmac = dmac; in sja1105_flower_parse_key()
352 struct sja1105_key key; in sja1105_cls_flower_add() local
357 rc = sja1105_flower_parse_key(priv, extack, cls, &key); in sja1105_cls_flower_add()
369 &key, in sja1105_cls_flower_add()
382 &key, BIT(cpu), true); in sja1105_cls_flower_add()
401 &key, BIT(to_dp->index), true); in sja1105_cls_flower_add()
410 &key, 0, false); in sja1105_cls_flower_add()
419 &key, act->hw_index, in sja1105_cls_flower_add()
481 int index = (port * SJA1105_NUM_TC) + rule->key.tc.pcp; in sja1105_cls_flower_del()