[U-Boot] [PATCH 26/27] virtio: net: Support non-legacy device
Simon Glass
sjg at chromium.org
Thu Sep 27 13:43:02 UTC 2018
On 23 September 2018 at 06:42, Bin Meng <bmeng.cn at gmail.com> wrote:
> For v1.0 compliant device, it always assumes the member 'num_buffers'
> exists in the struct virtio_net_hdr while the legacy driver only
> presented 'num_buffers' when VIRTIO_NET_F_MRG_RXBUF was negotiated.
> Without that feature the structure was 2 bytes shorter.
>
> Update the driver to support the non-legacy device.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> drivers/virtio/virtio_net.c | 31 ++++++++++++++++++++++++++-----
> 1 file changed, 26 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list