-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[barefoot][newport] Updated Newport configuration
- Updated buffers config; - Set eth2 as CPU port; - Added systemd service file to load bf_fpga.ko Signed-off-by: Andriy Kokhan <akokhan@barefootnetworks.com>
- Loading branch information
Andriy Kokhan
committed
Nov 27, 2019
1 parent
0c9040d
commit 6fd131b
Showing
7 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
platform/barefoot/sonic-platform-modules-bfn-newport/configs/network/interfaces.d/eth2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# eth cpu port | ||
auto eth2 | ||
iface eth2 inet | ||
up ifconfig eth2 promisc mtu 9000 |
14 changes: 14 additions & 0 deletions
14
...rm/barefoot/sonic-platform-modules-bfn-newport/configs/systemd/system/bfn-newport.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Barefoot Newport FPGA driver | ||
Before=syncd.service | ||
|
||
[Service] | ||
User=root | ||
ExecStartPre=/sbin/depmod -a | ||
ExecStart=/sbin/modprobe bf_fpga | ||
ExecStartPost=/sbin/modprobe bf_tun | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
1 change: 1 addition & 0 deletions
1
platform/barefoot/sonic-platform-modules-bfn-newport/debian/install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
configs/systemd/system/bfn-newport.service etc/systemd/system |
6 changes: 6 additions & 0 deletions
6
platform/barefoot/sonic-platform-modules-bfn-newport/debian/postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
set -e | ||
depmod -a | ||
systemctl enable bfn-newport.service | ||
systemctl start bfn-newport.service | ||
#DEBHELPER# |