Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken pytest attach and use less mbufs #433

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/dpdk_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
// 40Gb/s with 1500B packets means ~9M packets/s
// assuming 0.1s delay in processing means ~900k mbufs needed
#ifdef ENABLE_PYTEST
#define DP_MBUF_POOL_SIZE (200*1024)
#define DP_MBUF_POOL_SIZE (50*1024)
#else
#define DP_MBUF_POOL_SIZE (900*1024)
#endif
Expand Down
6 changes: 3 additions & 3 deletions test/dp_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def init_ifaces(self, grpc_client):
grpc_client.addroute(vni2, "0.0.0.0/0", vni2, router_ul_ipv6)

def attach(self, grpc_client):
VM1.ul_ipv6 = grpc_client.getinterface(VM1.name)['underlayRoute']
VM2.ul_ipv6 = grpc_client.getinterface(VM2.name)['underlayRoute']
VM3.ul_ipv6 = grpc_client.getinterface(VM3.name)['underlayRoute']
VM1.ul_ipv6 = grpc_client.getinterface(VM1.name)['underlay_route']
VM2.ul_ipv6 = grpc_client.getinterface(VM2.name)['underlay_route']
VM3.ul_ipv6 = grpc_client.getinterface(VM3.name)['underlay_route']

def get_vm_tap(self, idx):
iface = f"tap{idx}"
Expand Down