X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fnetdev-provider.h;h=b8f65291927c2d334d988c4788c96f31d9dac288;hb=0ff2282245a87f253843bf357988d7230139888f;hp=5214be3fdbb5cfef4400b2999cea25ab82aca7d4;hpb=de5cdb90f7c02d22b0595c7dc311c5306291b02f;p=openvswitch diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index 5214be3f..b8f65291 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -248,9 +248,15 @@ struct netdev_class { * bytes for Ethernet devices. * * If 'netdev' does not have an MTU (e.g. as some tunnels do not), then - * this function should set '*mtup' to INT_MAX. */ + * this function should return EOPNOTSUPP. */ int (*get_mtu)(const struct netdev *netdev, int *mtup); + /* Sets 'netdev''s MTU to 'mtu'. + * + * If 'netdev' does not have an MTU (e.g. as some tunnels do not), then + * this function should return EOPNOTSUPP. */ + int (*set_mtu)(const struct netdev *netdev, int mtu); + /* Returns the ifindex of 'netdev', if successful, as a positive number. * On failure, returns a negative errno value. *