Skip to content

Commit

Permalink
Add Marvell ASIC. (sonic-net#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalyVovnoboy authored and lguohan committed Jun 28, 2017
1 parent b865912 commit 442eea4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ config_syncd_cavium()
redis-cli FLUSHALL
}

config_syncd_marvell()
{
CMD_ARGS+=" -p $HWSKU_DIR/sai.profile"

[ -e /dev/net/tun ] || ( mkdir -p /dev/net && mknod /dev/net/tun c 10 200 )
}

config_syncd()
{
if [ "$SONIC_ASIC_TYPE" == "broadcom" ]; then
Expand All @@ -102,6 +109,8 @@ config_syncd()
config_syncd_cavium
elif [ "$SONIC_ASIC_TYPE" == "centec" ]; then
config_syncd_centec
elif [ "$SONIC_ASIC_TYPE" == "marvell" ]; then
config_syncd_marvell
else
echo "Unknown ASIC type $SONIC_ASIC_TYPE"
exit 1
Expand Down

0 comments on commit 442eea4

Please sign in to comment.