virtio-net: Add initial MTU advice feature
authorAaron Conole <aconole@redhat.com>
Fri, 3 Jun 2016 20:57:12 +0000 (16:57 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2016 01:08:49 +0000 (21:08 -0400)
commit14de9d114a82a564b94388c95af79a701dc93134
tree0383dc33ea97f87ab15be125f8f702b009d76923
parent3d9dc408fa6abf8dd1ea39e243e565891004a6f9
virtio-net: Add initial MTU advice feature

This commit adds the feature bit and associated mtu device entry for the
virtio network device.  When a virtio device comes up, it checks the
feature bit for the VIRTIO_NET_F_MTU feature.  If such feature bit is
enabled, the driver will read the advised MTU and use it as the initial
value.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c
include/uapi/linux/virtio_net.h