static int
set_ingress_policing(const char *port_name)
{
- int kbits_rate = cfg_get_int(0, "port.%s.ingress.policing_rate",
+ int kbits_rate = cfg_get_int(0, "port.%s.ingress.policing-rate",
port_name);
- int kbits_burst = cfg_get_int(0, "port.%s.ingress.policing_burst",
+ int kbits_burst = cfg_get_int(0, "port.%s.ingress.policing-burst",
port_name);
return netdev_nodev_set_policing(port_name, kbits_rate, kbits_burst);
the size of the port's MTU.
A port may be configured to enforce ingress policing by defining the
-key \fBport.\fIname\fB.ingress.policing_rate\fR with an integer
+key \fBport.\fIname\fB.ingress.policing-rate\fR with an integer
indicating the rate. The port \fIname\fR will only allow traffic to be
received at the rate specified in kilobits per second. If the rate is zero
or the key is not defined, then ingress policing is disabled.
If ingress policing is enabled, then the burst rate may be set by defining
-the key \fBport.\fIname\fB.ingress.policing_burst\fR with an integer
+the key \fBport.\fIname\fB.ingress.policing-burst\fR with an integer
indicating the burst rate in kilobits. If a key is not supplied or is
zero, then the default burst is 10 kilobits.
.RS
.nf
-port.eth1.ingress.policing_rate=512
-port.eth1.ingress.policing_burst=20
+port.eth1.ingress.policing-rate=512
+port.eth1.ingress.policing-burst=20
.fi
.SS "IEEE 802.1D-1998 Spanning Tree Support"