[SAI 3.3] update init script according to 3.3 requirement
- Insert/remove linux-knet-cb module - Create/remove devices for kernel modules Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
parent
936ca8d323
commit
243767c8b4
@ -16,9 +16,20 @@ case "$1" in
|
||||
start)
|
||||
echo -n "Load OpenNSL kernel modules... "
|
||||
|
||||
rm -f /dev/linux-knet-cb
|
||||
rm -f /dev/linux-bcm-knet
|
||||
rm -f /dev/linux-bcm-bde
|
||||
rm -f /dev/linux-kernel-bde
|
||||
|
||||
mknod /dev/linux-knet-cb c 121 0
|
||||
mknod /dev/linux-bcm-knet c 122 0
|
||||
mknod /dev/linux-bcm-bde c 126 0
|
||||
mknod /dev/linux-kernel-bde c 127 0
|
||||
|
||||
modprobe linux-kernel-bde dmasize=32M maxpayload=128
|
||||
modprobe linux-user-bde
|
||||
modprobe linux-bcm-knet use_rx_skb=1 rx_buffer_size=9238
|
||||
modprobe linux-knet-cb
|
||||
|
||||
echo "done."
|
||||
;;
|
||||
@ -26,6 +37,7 @@ start)
|
||||
stop)
|
||||
echo -n "Unload OpenNSL kernel modules... "
|
||||
|
||||
rmmod linux-knet-cb
|
||||
rmmod linux-bcm-knet
|
||||
rmmod linux-user-bde
|
||||
rmmod linux-kernel-bde
|
||||
|
Reference in New Issue
Block a user