kernel: add vhost-net module
authorMathew McBride <matt@traverse.com.au>
Mon, 21 Aug 2023 06:10:35 +0000 (06:10 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 16 Sep 2023 19:00:38 +0000 (21:00 +0200)
commit5edeb1ee0c9484da0a0c07080f4bda4c33ab72bf
tree8ed563a4e59268967002497f281ff563bf1555a9
parent68972704914915c47e9032588322322c6cc3e0aa
kernel: add vhost-net module

vhost-net is used to accelerate traffic to virtualisation
guests that use the virtio-net network card in QEMU.

Generally it is invoked by specifying "vhost=on" to a
QEMU -netdev device:

qemu-system-aarch64 -nographic -M virt -cpu host \
        --enable-kvm -bios u-boot.bin -smp 1 -m 2048 \
        -drive file=openwrt-armsr-armv8.img,format=raw,index=0,media=disk \
        -device "virtio-net,netdev=landev,disable-legacy=off,disable-modern=off" \
        -netdev "tap,id=landev,helper=/usr/lib/qemu-bridge-helper --br=br-lan,vhost=on"

Signed-off-by: Mathew McBride <matt@traverse.com.au>
(cherry picked from commit d188db8aed74547f98b905254d4f57baf225f1d6)
package/kernel/linux/modules/virt.mk