Skip to content

Commit 3433a45

Browse files
Jakub Klimczakhenrikbrixandersen
authored andcommitted
samples: net: echo_server: Add files for VIRTIO network device
Create an overlay and a config file for testing the VIRTIO network device. Add some instructions to the README.rst file as well. These can be used with any of the networking subsystem samples. Signed-off-by: Jakub Klimczak <[email protected]>
1 parent 91ac587 commit 3433a45

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Antmicro <www.antmicro.com>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_PCIE=y
5+
CONFIG_VIRTIO=y
6+
CONFIG_HEAP_MEM_POOL_SIZE=32768
7+
CONFIG_NET_L2_ETHERNET=y
8+
CONFIG_NET_QEMU_ETHERNET=y
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2025 Antmicro <www.antmicro.com>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pcie0 {
8+
eth0: eth0 {
9+
status = "disabled";
10+
};
11+
12+
virtio_net: virtio-net {
13+
compatible = "virtio,pci";
14+
15+
vendor-id = <0x1af4>;
16+
device-id = <0x1000>;
17+
18+
interrupts = <0xb 0x0 0x0>;
19+
interrupt-parent = <&intc>;
20+
21+
device {
22+
compatible = "virtio,net";
23+
status = "okay";
24+
zephyr,random-mac-address;
25+
};
26+
};
27+
};

0 commit comments

Comments
 (0)