]> git.karo-electronics.de Git - linux-beck.git/commit
virtio-net: restore VIRTIO_HDR_F_DATA_VALID on receiving
authorJason Wang <jasowang@redhat.com>
Fri, 20 Jan 2017 06:32:42 +0000 (14:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 16:01:17 +0000 (11:01 -0500)
commit6391a4481ba0796805d6581e42f9f0418c099e34
treef3636be425129c29943f31e61ead044c26b2854e
parent69fed99baac186013840ced3524562841296034f
virtio-net: restore VIRTIO_HDR_F_DATA_VALID on receiving

Commit 501db511397f ("virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on
xmit") in fact disables VIRTIO_HDR_F_DATA_VALID on receiving path too,
fixing this by adding a hint (has_data_valid) and set it only on the
receiving path.

Cc: Rolf Neugebauer <rolf.neugebauer@docker.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c
drivers/net/tun.c
drivers/net/virtio_net.c
include/linux/virtio_net.h
net/packet/af_packet.c