summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/unix-formats.c
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2021-03-01 08:45:17 +0100
committerDamjan Marion <dmarion@me.com>2021-03-04 09:09:08 +0000
commit57084e54082a29d19d2e4b71581c2a4980f8ce15 (patch)
tree11c937ad36d0da11ef4407fc6384feed0d105a09 /src/vppinfra/unix-formats.c
parent0ac5782e600097b66e6b06e0b9edc79651f3a4bd (diff)
libmemif: socket filename length 108
Dynamic size array was causing trouble in strlcpy. LINUX allows for max 108 filename length, so we can use that to make the array constant size. Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: I76b1fc41f9d93cfbc9ad11bdca0c96a1fc261e84
Diffstat (limited to 'src/vppinfra/unix-formats.c')
0 files changed, 0 insertions, 0 deletions
a>summaryrefslogtreecommitdiffstats
path: root/tests/dpdk/dpdk_scripts/patch_l3fwd.sh
blob: 54ae7eaffc0ae74885871c1deacf36125b45cab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash

set -x

# Setting variables
# set arch, default to x86_64 if none given
ARCH=${1:-"x86_64"}
PATCH=$2

# dpdk prefers "arm64" to "aarch64" and does not allow arm64 native target
if [ $ARCH == "aarch64" ]; then
    ARCH="arm64"
    MACHINE="armv8a"
else
    MACHINE="native"
fi

DPDK_DIR=dpdk
ROOTDIR=/tmp/openvpp-testing
PWDDIR=$(pwd)

# Compile the l3fwd
export RTE_SDK=${ROOTDIR}/${DPDK_DIR}/
export RTE_TARGET=${ARCH}-${MACHINE}-linuxapp-gcc
cd ${RTE_SDK}/examples/l3fwd
sudo sed -i 's/^#define RTE_TEST_RX_DESC_DEFAULT 128/#define RTE_TEST_RX_DESC_DEFAULT 2048/g' ./main.c
sudo sed -i 's/^#define RTE_TEST_TX_DESC_DEFAULT 512/#define RTE_TEST_TX_DESC_DEFAULT 2048/g' ./main.c

chmod +x ${PATCH} && source ${PATCH}

make clean
make -j || \
    { echo "Failed to compile l3fwd"; exit 1; }
cd ${PWDDIR}