Commit Graph

17 Commits

Author SHA1 Message Date
whywaita
98629f7ffc change interface to compatible linux implement 2020-08-02 16:18:18 -07:00
Konstantin Belyalov
0f858a2aeb [non linux: netlink/xdp] Add dummy function for LinkSetXdpFdWithFlags 2020-01-27 15:46:36 -08:00
Thomas Bucher
b4e9f47a11 Update netlink_unspecified.go
AddrReplace was missing, could not compile on OSX
2019-07-26 00:49:17 +02:00
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
Dan Winship
8a610f1e24 Add LinkSetTxQLen 2017-09-05 23:13:55 -07:00
David Gee
d71ebad8a5 Mended LinkSetMaster signature mismatch
Signature mismatches when you try and compile on non-Linux machines. Instead of ErrNotImplemented, you get a message about wrongly using *Bridge.
2017-03-29 10:07:30 -07:00
David McClure
6c782366d2 Add LinkSetARPOff and LinkSetARPOn
Signed-off-by: Jay Dunkelberger <ldunkelberger@pivotal.io>
2017-03-21 02:39:47 -07:00
Sebastien Boving
a3f0be6352 Add support for tcp diags. 2017-02-04 16:48:17 -08:00
Ethan J. Jackson
90b9ee5358 Fix the RouteList() prototype on non-linux platforms
The RouteList() function prototype had become out of sync with its
Linux counterpart.  This patch updates it.
2017-01-10 14:32:23 -08:00
Ethan J. Jackson
9f67bd458b Update netlink_unspecified with new Addr function prototypes
At some point the function prototypes for the `AddrAdd` and `AddrDel`
functions got out of sync with addr_linix.go.  This patch fixes it.
2017-01-05 13:01:20 -08:00
Ethan J. Jackson
13fb20a978 Update link functions on non-Linux builds
The non-Linux stub implementation found in netlink_unspecified.go was
missing quite a few Link related functions.  Also, some of the
functions that were there took a `*Link` instead of a `Link`.
2016-12-19 10:14:57 -08:00
Roman Verchikov
482f7a52b7 Inconsistent AddrList() interface
The issue was noticed when building coreos/flannel on Mac. By default
the build would fail with:

    pkg/ip/iface.go:32: cannot use link (type *netlink.Device) as type
    *netlink.Link in argument to netlink.AddrList:
        *netlink.Link is pointer to interface, not interface

Resolved by making interfaces of AddList() implementations the same,
although the reason for having `netlink_unspecified.go` is not fully
clear to me and given that there's only one implementation available.
Perhaps a better idea would be to remove the "interface" altoghether.
2016-11-19 14:19:31 -08:00
Vish Ishaya
0bc457d244 fix darwin build by moving code (#138)
Fixes issue #135
2016-06-15 08:44:14 -07:00
Alexander Morozov
2e9d285a71 Change logic of setting protinfo attrs
Now interface is supposing that you setting protinfo attrs for link one
by one. But you can get all protinfo attrs with one call.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-17 14:16:48 -08:00
Eugene Yakubovich
33e8718673 arp and vxlan support added 2014-10-13 11:04:09 -07:00
Vishvananda Ishaya
8dab8b7462 Initial commit of netlink package 2014-08-31 20:34:46 -07:00