diff options
author | Aloys Augustin <aloaugus@cisco.com> | 2021-03-29 22:08:09 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-04-08 21:43:25 +0000 |
commit | e39376e4d5aa66a5f8973f4f5470c736afeab4ed (patch) | |
tree | c5f9e9698abd2c74f0579fdc3c382c702d1ec3d0 /src/vnet/devices/netlink.h | |
parent | 7fbc5f9b1d613ba9c2b3ba2211f5de2e7bf43db3 (diff) |
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>
Diffstat (limited to 'src/vnet/devices/netlink.h')
-rw-r--r-- | src/vnet/devices/netlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/netlink.h b/src/vnet/devices/netlink.h index 4c765685091..f1c42609cbf 100644 --- a/src/vnet/devices/netlink.h +++ b/src/vnet/devices/netlink.h @@ -22,6 +22,7 @@ clib_error_t *vnet_netlink_set_link_netns (int ifindex, int netns_fd, clib_error_t *vnet_netlink_set_link_master (int ifindex, char *master_ifname); clib_error_t *vnet_netlink_set_link_addr (int ifindex, u8 * addr); clib_error_t *vnet_netlink_set_link_state (int ifindex, int up); +clib_error_t *vnet_netlink_get_link_mtu (int ifindex, u32 *mtu); clib_error_t *vnet_netlink_set_link_mtu (int ifindex, int mtu); clib_error_t *vnet_netlink_add_ip4_addr (int ifindex, void *addr, int pfx_len); |