Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiles on aarch64 #139

Closed
wants to merge 1 commit into from
Closed

Conversation

JakkuSakura
Copy link
Contributor

@JakkuSakura JakkuSakura commented Jul 4, 2021

Description

Fixes #132

This PR adds support for aarch64. Tested against Ubuntu Server 20.04 LTS arm64 on AWS.

Here's the script to run on a fresh installed EC2 instance

sudo apt update &&
sudo apt upgrade -y &&
sudo apt install -y dpdk dpdk-dev dpdk-igb-uio-dkms librte-rawdev-ioat20.0 clang gcc g++ net-tools pkg-config

# Using Hugepage with the DPDK
echo vm.nr_hugepages = 1024 | sudo tee /etc/sysctl.conf
sudo sysctl -p
sudo mkdir -p /mnt/huge
sudo mount -t hugetlbfs nodev /mnt/huge

RUSTUP_TOOLCHAIN=${1:-nightly}
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN

# Close ASLR; it is necessary in multiple process
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space

sudo modprobe igb_uio
sudo dpdk-devbind.py --force -b igb_uio ens6

echo 'export C_INCLUDE_PATH=/usr/include/dpdk/:/usr/include/x86_64-linux-gnu/dpdk:/usr/include/aarch64-linux-gnu/dpdk' >> ~/.bashrc
source ~/.bashrc

Type of change

  • New feature

@codecov
Copy link

codecov bot commented Jul 4, 2021

Codecov Report

Merging #139 (f27db07) into master (410696a) will decrease coverage by 0.26%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #139      +/-   ##
==========================================
- Coverage   68.38%   68.11%   -0.27%     
==========================================
  Files          66       66              
  Lines        5972     5972              
==========================================
- Hits         4084     4068      -16     
- Misses       1888     1904      +16     
Impacted Files Coverage Δ
core/src/packets/checksum.rs 76.92% <0.00%> (-13.85%) ⬇️
core/src/dpdk/mbuf.rs 82.28% <0.00%> (-2.37%) ⬇️
core/src/packets/ethernet.rs 78.80% <0.00%> (-1.33%) ⬇️
core/src/testils/proptest/strategy.rs 82.71% <0.00%> (+0.46%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 410696a...f27db07. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Does not compile on aarch64
2 participants