Lines Matching refs:port
258 * The per-port classification key is always composed of {DMAC, VID, PCP} and
262 * ID and PCP, and then the port-based defaults will be used.
266 * a. 'redirect', 'trap' or 'drop': select the egress port list
287 if (a->port < b->port)
289 if (a->port > b->port)
316 /* Each VL lookup entry matches on a single ingress port */
384 unsigned long port;
389 for_each_set_bit(port, &rule->port_mask, SJA1105_NUM_PORTS) {
391 vl_lookup[k].port = port;
397 u16 vid = dsa_8021q_rx_vid(priv->ds, port);
491 int sja1105_vl_redirect(struct sja1105_private *priv, int port,
523 rule->port_mask |= BIT(port);
531 rule->port_mask &= ~BIT(port);
541 int sja1105_vl_delete(struct sja1105_private *priv, int port,
546 rule->port_mask &= ~BIT(port);
567 int sja1105_vl_gate(struct sja1105_private *priv, int port,
689 rule->port_mask |= BIT(port);
707 rule->port_mask &= ~BIT(port);
718 static int sja1105_find_vlid(struct sja1105_private *priv, int port,
734 if (vl_lookup[i].port == port &&
740 if (vl_lookup[i].port == port &&
749 int sja1105_vl_stats(struct sja1105_private *priv, int port,
764 vlid = sja1105_find_vlid(priv, port, &rule->key);