Skip to content

Commit ccafd57

Browse files
committed
Add all the empty files
1 parent ffb4783 commit ccafd57

File tree

21 files changed

+532
-5
lines changed

21 files changed

+532
-5
lines changed

.github/workflows/ci.yml

Whitespace-only changes.

README.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ Rust AF_XDP demo using Aya for high-performance packet processing. Includes AWS
99

1010
---
1111

12-
## Overview
12+
### Overview
1313
`rust-afxdp-demo` provides a **complete solution** for:
1414
- High-performance packet processing using **Rust + eBPF**
1515
- **AF_XDP zero-copy networking**
1616
- **AWS EC2 automation with Ansible**
1717
- **Container-based deployment**
1818

19-
It uses the [Aya](https://github.com/aya-rs/aya) library for writing **safe Rust eBPF programs**, avoiding unsafe C code.
19+
It uses the Rust [Aya](https://github.com/aya-rs/aya) library for writing **safe Rust eBPF programs**, avoiding unsafe C code.
2020

2121
---
2222

23-
## Repository Structure
23+
### Repository Structure
2424

2525
```shell
2626
rust-afxdp-demo/
@@ -57,9 +57,33 @@ rust-afxdp-demo/
5757

5858
```
5959

60-
6160
---
6261

63-
## Architecture Diagram
62+
### Architecture Diagram
6463

6564
![Architecture](diagrams/architecture.png)
65+
66+
---
67+
68+
### Prerequisites
69+
* AWS CLI and credentials configured
70+
* Ansible installed locally
71+
* Rust 1.74+, cargo xtask, bpf-linker
72+
* Linux kernel headers on EC2 instance
73+
* Podman (optional for container tests)
74+
75+
---
76+
77+
### Deployment Steps
78+
**Step 1: Provision AWS Infrastructure**
79+
* Creates **VPC, subnets, Internet Gateway, security groups**
80+
* Deploys an **ENA-enabled EC2 instance** (e.g., `c5n.large`)
81+
* Sets up **SSH access and Ansible inventory**
82+
83+
Run:
84+
```shell
85+
cd ansible
86+
ansible-playbook playbooks/01-create-vpc.yml
87+
ansible-playbook playbooks/02-launch-ec2.yml
88+
89+
```

ansible/inventory/hosts.ini

Whitespace-only changes.

ansible/playbooks/01-create-vpc.yml

Whitespace-only changes.

ansible/playbooks/02-launch-ec2.yml

Whitespace-only changes.

ansible/playbooks/03-setup-instance.yml

Whitespace-only changes.

ansible/playbooks/04-install-ebpf-tools.yml

Whitespace-only changes.

aya-ebpf/Cargo.toml

Whitespace-only changes.

aya-ebpf/src/common.rs

Whitespace-only changes.

aya-ebpf/src/main.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)