mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
qosmngr: add log
Syslog added to log non-availability of traffic policing on the wan port on 63138, this is a chip level limitation.
This commit is contained in:
parent
98071d157d
commit
bbbbdf9650
1 changed files with 6 additions and 0 deletions
|
|
@ -601,6 +601,12 @@ config_ingress_rate_limit() {
|
|||
local ifname="$1"
|
||||
local ingress_rate=$2
|
||||
local in_burst_size=$3
|
||||
local wanport="$(db -q get hw.board.ethernetWanPort)"
|
||||
|
||||
if [ "$ifname" == "$wanport" ]; then
|
||||
logger -t qosmngr "policing is not support on port $ifname"
|
||||
return
|
||||
fi
|
||||
|
||||
# Unit in uci file is in bps while that accepted by ethswctl is kbits
|
||||
if [ $ingress_rate -lt 1000 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue