Closed lixuna closed 5 years ago
TBD / Deferred:
May not need to enable huge pages after boot:
- $ echo 5120 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
- $ echo 5120 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages
Not enabling VFs in host. Issues with VPP seeing double packets and experiencing lower performance. Instead we will let VPP handle creating sub interfaces (equivalent to VF).
echo 8 > /sys/class/net/enp94s0f1/device/sriov_numvfs
# Check the interface name before calling command
#Not persistent through reboots
TODO: document parameters for kernel
Find the second interface which is part of the bonded interface with:
awk '{print $2}' /sys/class/net/bond0/bonding/slaves
Update /etc/network/interfaces to remove the second device from the bond configuration.
Delete device from bond-slaves on the bond0 device: bond-slaves enp2s0 enp2s0d1
Delete the bond-master bond0
line from the iface configuration for the device.
Change:
iface enp2s0d1 inet manual
pre-up sleep 4
bond-master bond0
to
iface enp2s0d1 inet manual
pre-up sleep 4
bond-master bond0
Enable iommu and hugepages in the kernel
sed -i.bak 's/(GRUB_CMDLINE_LINUX=\")/\1iommu=pt intel_iommu=on hugepagesz=2M hugepages=10240 isolcpus=2,4,6 nohz_full=2,4,6 rcu_nocbs=2,4,6 /' /etc/default/grub
After grub and bond changes reboot.
Check second interface is not part of bond with cat /sys/class/net/bond0/bonding/slaves
If you are testing the L2 network with more than one vlan set vlan id on the interface and set an ip on that interface:
ip link add name enp2s0d1.1030 link enp2s0d1 type vlan id 1030
ip addr add 172.16.99.31/24 dev enp2s0d1.1030
ifconfig enp2s0d1.1030 up
Alternatively test with one vlan in Packet.net web ui attached to the server.
Simple VPP configuration using host interface and IP set in VPP
Install the Mellanox drivers, libs, tools and dependencies:
cd /tmp
wget http://content.mellanox.com/ofed/MLNX_OFED-4.4-1.0.0.0/MLNX_OFED_LINUX-4.4-1.0.0.0-ubuntu18.04-x86_64.tgz
tar zxvf MLNX_OFED_LINUX-4.4-1.0.0.0-ubuntu18.04-x86_64.tgz
cd MLNX_OFED_LINUX-4.4-1.0.0.0-ubuntu18.04-x86_64
./mlnxofedinstall --dpdk --upstream-libs --force
New version of mellanox needed. http://content.mellanox.com/ofed/MLNX_OFED-4.4-2.0.7.0/MLNX_OFED_LINUX-4.4-2.0.7.0-ubuntu18.04-x86_64.tgz
Found from http://www.mellanox.com/page/products_dyn?product_family=26
* Setup base host system SR-IOV, VFS, IOMMU
Layer-2 network setup
DPDK and VF support
Install software for running CNFs
Install software for running a vSwitch
Update docs