diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-10-15 02:21:24 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-14 09:16:28 -0800 |
commit | 699aae0800983b0230bffe999d149e7323537cb3 (patch) | |
tree | 396f468d38f6e2cf1e9675ec58523d3875758929 /drivers/core/read.c | |
parent | 550435edf810ad0a96a50e6a94d4ebf693fc5913 (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>
Diffstat (limited to 'drivers/core/read.c')
0 files changed, 0 insertions, 0 deletions