commit | 422b34d2181f1758ad16efe858b20ae7fbaab5b8 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Mon Oct 15 02:21:24 2018 -0700 |
committer | Simon Glass <sjg@chromium.org> | Wed Nov 14 09:16:28 2018 -0800 |
tree | 396f468d38f6e2cf1e9675ec58523d3875758929 | |
parent | c85a5bef47e05d360c7663da3a2f52f35617bfd9 [diff] |
virtio: net: Support non-legacy device 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@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>