mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
dg400: layer2_interface_ethernet: Delay tmctl porttminit calls, refs #8007
After switching to bcmkernel 4.16L.04, the porttminit of the WAN if started failing with message: ERROR[tmctl_portTmInit.186]: Invalid maxQueues=0 ifname=eth0 tmctl: tmctl_portTmInit() failed, ret = -1. ret code = 108. Delaying the call seem to solve the problem.
This commit is contained in:
parent
28c8d3ba74
commit
b903e729e8
1 changed files with 7 additions and 4 deletions
|
|
@ -61,10 +61,6 @@ boot() {
|
|||
fi
|
||||
fi
|
||||
for interf in `db get hw.board.ethernetPortOrder`; do ethswctl -c wan -i $interf -o disable ; done
|
||||
local tm=`db get hw.board.tm`
|
||||
if [ "$tm" == "1" ]; then
|
||||
for interf in `db get hw.board.ethernetPortOrder`; do tmctl porttminit --devtype ETH --if $interf --flag 1 ; done
|
||||
fi
|
||||
wanport=$(db get hw.board.ethernetWanPort)
|
||||
portnum=$(get_port_number $wanport)
|
||||
ethswctl -c pause -p $portnum -v 1
|
||||
|
|
@ -73,6 +69,13 @@ boot() {
|
|||
ethswctl -c wan -i $baseifname -o enable
|
||||
fi
|
||||
|
||||
if [ "`db get hw.board.tm`" == "1" ]; then
|
||||
for interf in `db get hw.board.ethernetPortOrder`; do
|
||||
tmctl porttminit --devtype ETH --if $interf --flag 1 || \
|
||||
echo "ERROR: porttminit $interf failed!" > /dev/kmsg
|
||||
done
|
||||
fi
|
||||
|
||||
ifconfig $baseifname up
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue