Commit Graph

6 Commits

Author SHA1 Message Date
Adrian Chiris 28720742a4 Add support for IFLA_VF_RATE
Today netlink package supports Get/Set of a VF's max TX rate
via IFLA_VF_TX_RATE netlink attribute.

This patch add support to Get/Set of a VFs min and max TX rate
via IFLA_VF_RATE netlink attribute.

- Add support to set min/max tx rate for VF via IFLA_VF_RATE
- Added IFLA_VF_RATE min/max tx rate attributes to netlink.VfInfo
  including parsing support in netlink.parseVfInfo()

NOTE: According to [1] IFLA_VF_RATE takes precedence over
      IFLA_VF_TX_RATE. Dealing with the co-existance of these
      netlink attributes is left for the user to handle.

[1]https://lists.openwall.net/netdev/2014/05/22/42
2019-07-25 03:38:53 +02:00
Przemyslaw Lal 43af4161ea Add support for setting VLAN QoS for VF links
This change adds support for setting VLAN QoS (priority) field for the
SR-IOV Virtual Function links.
2019-07-15 07:57:55 -07:00
Anton Aksola df01369528 add support for link groups (IFLA_GROUP) 2019-07-13 20:34:27 -07:00
pritesh ad19ca1a4c netlink: allow non linux builds to pass. 2017-12-23 18:05:36 -08:00
Dan Winship 8a610f1e24 Add LinkSetTxQLen 2017-09-05 23:13:55 -07:00
Ethan J. Jackson e8a63ddd86 Implement handle on non-linux platforms
When developing for Linux on a non-Linux platform, it's useful to have
mock method implementations so the code can easily build locally.
This patch adds such mock implementations for the handle struct, as is
already done in netlink_unspecified.go and route_unspecified.go.
2016-12-19 10:14:29 -08:00