diff options
author | Jason Wang <jasowang@redhat.com> | 2017-01-20 07:32:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-20 17:01:17 +0100 |
commit | 6391a4481ba0796805d6581e42f9f0418c099e34 (patch) | |
tree | f3636be425129c29943f31e61ead044c26b2854e /drivers/net/tun.c | |
parent | gianfar: Do not reuse pages from emergency reserve (diff) | |
download | linux-6391a4481ba0796805d6581e42f9f0418c099e34.tar.xz linux-6391a4481ba0796805d6581e42f9f0418c099e34.zip |
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>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index cd8e02c94be0..2cd10b26b650 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1360,7 +1360,7 @@ static ssize_t tun_put_user(struct tun_struct *tun, return -EINVAL; if (virtio_net_hdr_from_skb(skb, &gso, - tun_is_little_endian(tun))) { + tun_is_little_endian(tun), true)) { struct skb_shared_info *sinfo = skb_shinfo(skb); pr_err("unexpected GSO type: " "0x%x, gso_size %d, hdr_len %d\n", |