virtio_net: fix adding vids on big-endian
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Apr 2018 05:30:49 +0000 (08:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 20:33:20 +0000 (16:33 -0400)
commitd7fad4c840f33a6bd333dd7fbb3006edbcf0017a
treea175512973cb6d5897590ead3ba947de5bb1f503
parent12e571693837d6164bda61e316b1944972ee0d97
virtio_net: fix adding vids on big-endian

Programming vids (adding or removing them) still passes
guest-endian values in the DMA buffer. That's wrong
if guest is big-endian and when virtio 1 is enabled.

Note: this is on top of a previous patch:
virtio_net: split out ctrl buffer

Fixes: 9465a7a6f ("virtio_net: enable v1.0 support")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c