Lines Matching refs:policing
582 /* The L2 policing table is 2-stage. The table is looked up for each frame
586 * within the policing table itself, which is used to resolve the policer that
629 struct sja1105_l2_policing_entry *policing;
648 policing = table->entries;
655 policing[port * SJA1105_NUM_TC + tc].sharindx = port;
657 policing[bcast].sharindx = port;
667 policing[port].smax = 65535; /* Burst size in bytes */
668 policing[port].rate = SJA1105_RATE_MBPS(1000);
669 policing[port].maxlen = mtu;
670 policing[port].partition = 0;
1815 [SJA1105_BEST_EFFORT_POLICING] = "Best-effort policing",
3233 struct sja1105_l2_policing_entry *policing;
3241 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
3243 if (policing[port].maxlen == new_mtu)
3246 policing[port].maxlen = new_mtu;
3351 struct sja1105_l2_policing_entry *policing;
3354 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
3360 policing[port].rate = div_u64(512 * policer->rate_bytes_per_sec,
3362 policing[port].smax = policer->burst;
3369 struct sja1105_l2_policing_entry *policing;
3372 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
3374 policing[port].rate = SJA1105_RATE_MBPS(1000);
3375 policing[port].smax = 65535;