devices: af_packet - use netlink to get/set mtu 18/31818/3
authorAloys Augustin <aloaugus@cisco.com>
Mon, 29 Mar 2021 20:08:09 +0000 (22:08 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 8 Apr 2021 21:43:25 +0000 (21:43 +0000)
commite39376e4d5aa66a5f8973f4f5470c736afeab4ed
treec5f9e9698abd2c74f0579fdc3c382c702d1ec3d0
parent7fbc5f9b1d613ba9c2b3ba2211f5de2e7bf43db3
devices: af_packet - use netlink to get/set mtu

The /sys filesystem is not always accurate when switching network
namespaces. Using netlink should work in more situations.

Type: improvement
Change-Id: I71611f14319820469ea7794eec5b7c6c70e2be6d
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
src/vnet/devices/af_packet/af_packet.c
src/vnet/devices/netlink.c
src/vnet/devices/netlink.h