aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm/message_queue.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-07-12 01:45:13 -0700
committerDamjan Marion <dmarion@me.com>2018-07-17 09:01:46 +0000
commit5da96a77a84ae5414debbc46d390464d51010113 (patch)
tree5895f437c915ea7a5db7288afa2f2c68820ed0b8 /src/svm/message_queue.c
parent208c29aac523231af2420a95ba7e5d361698780b (diff)
session: make sure segment sizes are page aligned
Change-Id: Ibbba75d069ca1bbf9e5a1b8bd2f405d32021c656 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/svm/message_queue.c')
0 files changed, 0 insertions, 0 deletions
ests/dpdk/dpdk_scripts/init_dpdk.sh?h=oper-rls2302-230327'>logtreecommitdiffstats
path: root/tests/dpdk/dpdk_scripts/init_dpdk.sh
blob: d6565e063ba4b5ec65ba0908b4adf84d749b8ed8 (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
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash

set -x

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

# set arch, default to x86_64 if none given
ARCH=${3:-"x86_64"}

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

cd ${ROOTDIR}/${DPDK_DIR}/

modprobe uio
echo "RC = $?"

lsmod | grep igb_uio
if [ $? -ne 1 ];
then
    rmmod igb_uio || \
        { echo "Failed to remove igb_uio module"; exit 1; }
fi

lsmod | grep uio_pci_generic
if [ $? -ne 1 ];
then
    rmmod uio_pci_generic || \
        { echo "Failed to remove uio_pci_generic module"; exit 1; }
fi

insmod ./${ARCH}-${MACHINE}-linuxapp-gcc/kmod/igb_uio.ko || \
    { echo "Failed to insert igb_uio module"; exit 1; }

# Binding
./usertools/dpdk-devbind.py -b igb_uio $1 $2 || \
    { echo "Failed to bind interface $1 and $2 to igb_uio"; exit 1; }

cd ${PWDDIR}