Skip to content

Commit

Permalink
enabling rx sleepy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
biplamal committed Jul 18, 2024
1 parent 4e22fcd commit 4f7f77c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deployments/k8s/manifests/ixia-c-b2b-eth0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ items:
value: virtual@af_packet,eth0
- name: OPT_NO_HUGEPAGES
value: "Yes"
- name: DBG_RX_SLEEPY
value: "Yes"
- name: OPT_LISTEN_PORT
value: "5555"
- name: ARG_CORE_LIST
Expand Down
6 changes: 4 additions & 2 deletions deployments/template-ixia-c-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ data:
{
"name": "traffic-engine",
"path": "$(configq .images[2].path)",
"tag": "$(configq .images[2].tag)"
"tag": "$(configq .images[2].tag)",
"env": {
"DBG_RX_SLEEPY": "Yes"
}
},
{
"name": "protocol-engine",
Expand All @@ -30,4 +33,3 @@ data:
}
]
}
6 changes: 6 additions & 0 deletions do.sh
Original file line number Diff line number Diff line change
Expand Up @@ -621,13 +621,15 @@ create_ixia_c_b2b_dp() {
-e ARG_IFACE_LIST="virtual@af_packet,${VETH_A}" \
-e OPT_NO_HUGEPAGES="Yes" \
-e OPT_NO_PINNING="Yes" \
-e DBG_RX_SLEEPY="Yes" \
$(ixia_c_traffic_engine_img) \
&& docker run --net=host --privileged -d \
--name=ixia-c-traffic-engine-${VETH_Z} \
-e OPT_LISTEN_PORT="5556" \
-e ARG_IFACE_LIST="virtual@af_packet,${VETH_Z}" \
-e OPT_NO_HUGEPAGES="Yes" \
-e OPT_NO_PINNING="Yes" \
-e DBG_RX_SLEEPY="Yes" \
$(ixia_c_traffic_engine_img) \
&& docker ps -a \
&& gen_controller_config_b2b_dp \
Expand Down Expand Up @@ -681,6 +683,7 @@ create_ixia_c_b2b_cpdp() {
-e OPT_NO_HUGEPAGES="Yes" \
-e OPT_NO_PINNING="Yes" \
-e WAIT_FOR_IFACE="Yes" \
-e DBG_RX_SLEEPY="Yes" \
$(ixia_c_traffic_engine_img) \
&& docker run --privileged -d \
--net=container:ixia-c-traffic-engine-${VETH_A} \
Expand All @@ -694,6 +697,7 @@ create_ixia_c_b2b_cpdp() {
-e OPT_NO_HUGEPAGES="Yes" \
-e OPT_NO_PINNING="Yes" \
-e WAIT_FOR_IFACE="Yes" \
-e DBG_RX_SLEEPY="Yes" \
$(ixia_c_traffic_engine_img) \
&& docker run --privileged -d \
--net=container:ixia-c-traffic-engine-${VETH_Z} \
Expand Down Expand Up @@ -758,6 +762,7 @@ create_ixia_c_b2b_lag() {
-e OPT_NO_HUGEPAGES="Yes" \
-e OPT_NO_PINNING="Yes" \
-e WAIT_FOR_IFACE="Yes" \
-e DBG_RX_SLEEPY="Yes" \
-e OPT_MEMORY="1024" \
$(ixia_c_traffic_engine_img) \
&& docker run --privileged -d \
Expand All @@ -772,6 +777,7 @@ create_ixia_c_b2b_lag() {
-e OPT_NO_HUGEPAGES="Yes" \
-e OPT_NO_PINNING="Yes" \
-e WAIT_FOR_IFACE="Yes" \
-e DBG_RX_SLEEPY="Yes" \
-e OPT_MEMORY="1024" \
$(ixia_c_traffic_engine_img) \
&& docker run --privileged -d \
Expand Down

0 comments on commit 4f7f77c

Please sign in to comment.