Skip to content

Commit

Permalink
Enable Debugs in BCM Kernel-bde and Knet Modules (sonic-net#2786)
Browse files Browse the repository at this point in the history
* Enable Debugs in BCM Kernel-bde and Knet Modules

* Added Explanation for debugs enabled
  • Loading branch information
sridhar-ravindran authored and yxieca committed May 6, 2019
1 parent cf6f22f commit 4e99b60
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ function create_devices()
mknod /dev/linux-kernel-bde c 127 0
}

# linux-kernel-bde debug=4 ==> Verbose level debug
# dma_debug=1 ==> Enable DMA debug
# linux-bcm-knet debug=0x5020 ==> Enable KNET Warning(0x1000),
# Events(0x20) and Instance(0x4000)
# level logs
function load_kernel_modules()
{
modprobe linux-kernel-bde dmasize=32M maxpayload=128
modprobe linux-kernel-bde dmasize=32M maxpayload=128 debug=4 dma_debug=1
modprobe linux-user-bde
modprobe linux-bcm-knet use_rx_skb=1 rx_buffer_size=9238
modprobe linux-bcm-knet use_rx_skb=1 rx_buffer_size=9238 debug=0x5020
modprobe linux-knet-cb
}

Expand Down

0 comments on commit 4e99b60

Please sign in to comment.