Home
last modified time | relevance | path

Searched refs:policing (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c37 struct sja1105_l2_policing_entry *policing; in sja1105_setup_bcast_policer() local
60 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_setup_bcast_policer()
62 if (policing[(SJA1105_NUM_PORTS * SJA1105_NUM_TC) + port].sharindx != port) { in sja1105_setup_bcast_policer()
77 policing[bcast].sharindx = rule->bcast_pol.sharindx; in sja1105_setup_bcast_policer()
80 policing[rule->bcast_pol.sharindx].rate = div_u64(rate_bytes_per_sec * in sja1105_setup_bcast_policer()
82 policing[rule->bcast_pol.sharindx].smax = burst; in sja1105_setup_bcast_policer()
85 policing[rule->bcast_pol.sharindx].maxlen = VLAN_ETH_FRAME_LEN + in sja1105_setup_bcast_policer()
108 struct sja1105_l2_policing_entry *policing; in sja1105_setup_tc_policer() local
132 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_setup_tc_policer()
134 if (policing[(por in sja1105_setup_tc_policer()
421 struct sja1105_l2_policing_entry *policing; sja1105_cls_flower_del() local
[all...]
H A Dsja1105_main.c582 /* 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; in sja1105_init_l2_policing() local
648 policing = table->entries; in sja1105_init_l2_policing()
655 policing[port * SJA1105_NUM_TC + tc].sharindx = port; in sja1105_init_l2_policing()
657 policing[bcast].sharindx = port; in sja1105_init_l2_policing()
667 policing[port].smax = 65535; /* Burst size in bytes */ in sja1105_init_l2_policing()
668 policing[port].rate = SJA1105_RATE_MBPS(1000); in sja1105_init_l2_policing()
669 policing[port].maxlen = mtu; in sja1105_init_l2_policing()
670 policing[por in sja1105_init_l2_policing()
3233 struct sja1105_l2_policing_entry *policing; sja1105_change_mtu() local
3351 struct sja1105_l2_policing_entry *policing; sja1105_port_policer_add() local
3369 struct sja1105_l2_policing_entry *policing; sja1105_port_policer_del() local
[all...]
/kernel/linux/linux-6.6/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c37 struct sja1105_l2_policing_entry *policing; in sja1105_setup_bcast_policer() local
61 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_setup_bcast_policer()
63 if (policing[(ds->num_ports * SJA1105_NUM_TC) + port].sharindx != port) { in sja1105_setup_bcast_policer()
78 policing[bcast].sharindx = rule->bcast_pol.sharindx; in sja1105_setup_bcast_policer()
81 policing[rule->bcast_pol.sharindx].rate = div_u64(rate_bytes_per_sec * in sja1105_setup_bcast_policer()
83 policing[rule->bcast_pol.sharindx].smax = burst; in sja1105_setup_bcast_policer()
86 policing[rule->bcast_pol.sharindx].maxlen = VLAN_ETH_FRAME_LEN + in sja1105_setup_bcast_policer()
109 struct sja1105_l2_policing_entry *policing; in sja1105_setup_tc_policer() local
133 policing = priv->static_config.tables[BLK_IDX_L2_POLICING].entries; in sja1105_setup_tc_policer()
135 if (policing[(por in sja1105_setup_tc_policer()
464 struct sja1105_l2_policing_entry *policing; sja1105_cls_flower_del() local
[all...]
H A Dsja1105_main.c961 /* 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; in sja1105_init_l2_policing() local
1028 policing = table->entries; in sja1105_init_l2_policing()
1036 policing[port * SJA1105_NUM_TC + tc].sharindx = port; in sja1105_init_l2_policing()
1038 policing[bcast].sharindx = port; in sja1105_init_l2_policing()
1041 policing[mcast].sharindx = port; in sja1105_init_l2_policing()
1051 policing[port].smax = 65535; /* Burst size in bytes */ in sja1105_init_l2_policing()
1052 policing[port].rate = SJA1105_RATE_MBPS(1000); in sja1105_init_l2_policing()
1053 policing[por in sja1105_init_l2_policing()
2796 struct sja1105_l2_policing_entry *policing; sja1105_change_mtu() local
2915 struct sja1105_l2_policing_entry *policing; sja1105_port_policer_add() local
2933 struct sja1105_l2_policing_entry *policing; sja1105_port_policer_del() local
[all...]

Completed in 7 milliseconds