net/virtio: init MTU in case no control channel
authorZhike Wang <wangzhike@jd.com>
Fri, 5 Jan 2018 10:28:06 +0000 (02:28 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit240da8b2143b7be372cf6388f028b26b15f16776
tree56abd55406059eeb7295217a7576a0a285f59327
parentae0b1de941c5db657d202d78132ab78065468e77
net/virtio: init MTU in case no control channel

The max_mtu is kept as zero in case no CRTL channel, which leads
to failure when calling virtio_mtu_set().

Signed-off-by: Zhike Wang <wangzhike@jd.com>
Acked-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_ethdev.c