From 773934de71fafcd332879838bf519ef3d90271e1 Mon Sep 17 00:00:00 2001 From: "Sridhar K. N. Rao" Date: Tue, 2 Nov 2021 14:18:18 +0530 Subject: K8S: PROX and TREX containers. This patch adds source files to build prox and trex containers. Signed-off-by: Sridhar K. N. Rao Change-Id: I9a26672bc4869e663e6afc64741dbb9ededbb832 --- .../trafficgen-pods/prox/vhost_substitute.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tools/k8s/test-containers/trafficgen-pods/prox/vhost_substitute.sh (limited to 'tools/k8s/test-containers/trafficgen-pods/prox/vhost_substitute.sh') diff --git a/tools/k8s/test-containers/trafficgen-pods/prox/vhost_substitute.sh b/tools/k8s/test-containers/trafficgen-pods/prox/vhost_substitute.sh new file mode 100755 index 00000000..b33f3521 --- /dev/null +++ b/tools/k8s/test-containers/trafficgen-pods/prox/vhost_substitute.sh @@ -0,0 +1,19 @@ +!/bin/bash + +# The first two commands update one of the 'if' checks to remove +# the check for 'master == VHOST_USER_SET_VRING_CALL'. +# +# Search for: " !(dev->flags & VIRTIO_DEV_VDPA_CONFIGURED) &&". +# Replace with: " !(dev->flags & VIRTIO_DEV_VDPA_CONFIGURED)) {". +sed -i -e 's/ !(dev->flags & VIRTIO_DEV_VDPA_CONFIGURED) &&/ !(dev->flags \& VIRTIO_DEV_VDPA_CONFIGURED)) {/g' lib/librte_vhost/vhost_user.c +# +# Search for line with: " msg.request.master == VHOST_USER_SET_VRING_CALL) {". +# Delete the line. +sed -i -e '/ msg\.request\.master == VHOST_USER_SET_VRING_CALL) {/d' lib/librte_vhost/vhost_user.c + + +# Force an RARP message to be sent out. +# +# Search for line with: " hw->started = true;". +# Append line: " virtio_notify_peers(dev);". +sed -i -e '/ hw->started = true;/a virtio_notify_peers(dev);' drivers/net/virtio/virtio_ethdev.c -- cgit 1.2.3-korg