net: Remove receive_raw()
commitb9ad513e187669db8f5ac238028f6bf25a17c641
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sun, 28 Apr 2024 07:00:47 +0000 (28 16:00 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 4 Jun 2024 07:14:26 +0000 (4 15:14 +0800)
tree7e7aef2866b1ada836ef0cc4e0b051d104f81dfa
parenta67753710d5fe6c0eef95229ff5fd9cafb78d862
net: Remove receive_raw()

While netmap implements virtio-net header, it does not implement
receive_raw(). Instead of implementing receive_raw for netmap, add
virtio-net headers in the common code and use receive_iov()/receive()
instead. This also fixes the buffer size for the virtio-net header.

Fixes: fbbdbddec0 ("tap: allow extended virtio header with hash info")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/net/net.h
net/net.c
net/tap.c