Skip to content

Commit 0dcd325

Browse files
authored
bump ipv4 routing table size (#13)
* bump ipv4 routing table size * update test * update expected test table size, sudo over pfexec on linux
1 parent 668f1a2 commit 0dcd325

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.github/buildomat/jobs/packet-test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
####
2323
#### <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2424

25+
export RUST_BACKTRACE=1
26+
2527
set -o errexit
2628
set -o pipefail
2729
set -o xtrace

.github/buildomat/linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [ $SDE_CALC != $SDE_DEB_SHA256 ]; then
1212
echo "downloaded tofino_sde has a bad checksum"
1313
exit 1
1414
fi
15-
pfexec dpkg -i $PKG
15+
sudo dpkg -i $PKG
1616

1717
export SDE=/opt/oxide/tofino_sde
1818
export LD_LIBRARY_PATH="$SDE/lib:$LD_LIBRARY_PATH"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ p4_artifacts*
2020

2121
# OS artifacts
2222
.DS_Store
23+
!.github

dpd-client/tests/integration_tests/table_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ use dpd_client::ResponseValue;
3535
// This table has further shrunk to 4022 entries with the open source
3636
// compiler. That is being tracked as issue #1092, which will presumably
3737
// subsume #1013.
38-
const IPV4_LPM_SIZE: usize = 4022; // ipv4 forwarding table
38+
// update: with the move to 8192 entries we're now at 8124
39+
const IPV4_LPM_SIZE: usize = 8125; // ipv4 forwarding table
3940
const IPV6_LPM_SIZE: usize = 1023; // ipv6 forwarding table
4041
const SWITCH_IPV4_ADDRS_SIZE: usize = 511; // ipv4 addrs assigned to our ports
4142
const SWITCH_IPV6_ADDRS_SIZE: usize = 511; // ipv6 addrs assigned to our ports

dpd/p4/constants.p4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const bit<16> L2_ISOLATED_FLAG = 0x8000;
55
//is going to need to come either through ATCAM/ALPM or code restructuring.
66
const int IPV4_NAT_TABLE_SIZE = 1024; // nat routing table
77
const int IPV6_NAT_TABLE_SIZE = 1024; // nat routing table
8-
const int IPV4_LPM_SIZE = 4096; // ipv4 forwarding table
8+
const int IPV4_LPM_SIZE = 8192; // ipv4 forwarding table
99
const int IPV6_LPM_SIZE = 1024; // ipv6 forwarding table
1010

1111
const int IPV4_ARP_SIZE = 512; // arp cache

0 commit comments

Comments
 (0)