On 23 September 2018 at 06:42, Bin Meng <bmeng...@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...@gmail.com> > --- > > drivers/virtio/virtio_net.c | 31 ++++++++++++++++++++++++++----- > 1 file changed, 26 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot