summaryrefslogtreecommitdiff
path: root/drivers/virtio/virtio_net.c
Commit message (Collapse)AuthorAgeFilesLines
* virtio: net: Support non-legacy deviceBin Meng2018-11-141-5/+26
| | | | | | | | | | | | 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>
* virtio: Add net driver supportTuomas Tynkkynen2018-11-141-0/+218
This adds virtio net device driver support. Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>