Lines Matching refs:policing
961 /* The L2 policing table is 2-stage. The table is looked up for each frame
965 * within the policing table itself, which is used to resolve the policer that
1008 struct sja1105_l2_policing_entry *policing;
1028 policing = table->entries;
1036 policing[port * SJA1105_NUM_TC + tc].sharindx = port;
1038 policing[bcast].sharindx = port;
1041 policing[mcast].sharindx = port;
1051 policing[port].smax = 65535; /* Burst size in bytes */
1052 policing[port].rate = SJA1105_RATE_MBPS(1000);
1053 policing[port].maxlen = mtu;
1054 policing[port].partition = 0;
2276 [SJA1105_BEST_EFFORT_POLICING] = "Best-effort policing",
2796 struct sja1105_l2_policing_entry *policing;
2804 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
2806 if (policing[port].maxlen == new_mtu)
2809 policing[port].maxlen = new_mtu;
2915 struct sja1105_l2_policing_entry *policing;
2918 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
2924 policing[port].rate = div_u64(512 * policer->rate_bytes_per_sec,
2926 policing[port].smax = policer->burst;
2933 struct sja1105_l2_policing_entry *policing;
2936 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries;
2938 policing[port].rate = SJA1105_RATE_MBPS(1000);
2939 policing[port].smax = 65535;