Commit 3433a45d authored by Jakub Klimczak's avatar Jakub Klimczak Committed by Henrik Brix Andersen
Browse files

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: default avatarJakub Klimczak <jklimczak@internships.antmicro.com>
parent 91ac5871
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
# Copyright (c) 2025 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_PCIE=y
CONFIG_VIRTIO=y
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_QEMU_ETHERNET=y
+27 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2025 Antmicro <www.antmicro.com>
 *
 * SPDX-License-Identifier: Apache-2.0
 */

&pcie0 {
	eth0: eth0 {
		status = "disabled";
	};

	virtio_net: virtio-net {
		compatible = "virtio,pci";

		vendor-id = <0x1af4>;
		device-id = <0x1000>;

		interrupts = <0xb 0x0 0x0>;
		interrupt-parent = <&intc>;

		device {
			compatible = "virtio,net";
			status = "okay";
			zephyr,random-mac-address;
		};
	};
};