Update deps

This commit is contained in:
Frank Denis 2019-10-31 18:00:44 +01:00
parent 59c3d5121d
commit c5bda9e2ae
35 changed files with 1992 additions and 19 deletions

6
go.mod
View File

@ -20,9 +20,9 @@ require (
github.com/k-sone/critbitgo v1.3.0
github.com/kardianos/service v1.0.0
github.com/miekg/dns v1.1.22
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
golang.org/x/net v0.0.0-20191021144547-ec77196f6094
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037
golang.org/x/crypto v0.0.0-20191029031824-8986dd9e96cf
golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271
golang.org/x/sys v0.0.0-20191029155521-f43be2a4598c
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/yaml.v2 v2.2.2 // indirect
)

12
go.sum
View File

@ -45,13 +45,13 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
golang.org/x/crypto v0.0.0-20190909091759-094676da4a83 h1:mgAKeshyNqWKdENOnQsg+8dRTwZFIwFaO3HNl52sweA=
golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 h1:ObdrDkeb4kJdCP557AjRjq69pTHfNouLtWZG7j9rPN8=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191029031824-8986dd9e96cf h1:fnPsqIDRbCSgumaMCRpoIoF2s4qxv0xSSS0BVZUE/ss=
golang.org/x/crypto v0.0.0-20191029031824-8986dd9e96cf/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191021144547-ec77196f6094 h1:5O4U9trLjNpuhpynaDsqwCk+Tw6seqJz1EbqbnzHrc8=
golang.org/x/net v0.0.0-20191021144547-ec77196f6094/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271 h1:N66aaryRB3Ax92gH0v3hp1QYZ3zWWCCUR/j8Ifh45Ss=
golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@ -61,8 +61,8 @@ golang.org/x/sys v0.0.0-20190909082730-f460065e899a h1:mIzbOulag9/gXacgxKlFVwpCO
golang.org/x/sys v0.0.0-20190909082730-f460065e899a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191029155521-f43be2a4598c h1:S/FtSvpNLtFBgjTqcKsRpsa6aVsI6iztaz1bQd9BJwE=
golang.org/x/sys v0.0.0-20191029155521-f43be2a4598c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=

View File

@ -35,6 +35,7 @@ func marshalInterface(b []byte, cm *ControlMessage) []byte {
}
func parseInterface(cm *ControlMessage, b []byte) {
sadl := (*syscall.SockaddrDatalink)(unsafe.Pointer(&b[0]))
var sadl syscall.SockaddrDatalink
copy((*[unsafe.Sizeof(sadl)]byte)(unsafe.Pointer(&sadl))[:], b)
cm.IfIndex = int(sadl.Index)
}

93
vendor/golang.org/x/net/ipv4/zsys_freebsd_arm64.go generated vendored Normal file
View File

@ -0,0 +1,93 @@
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs defs_freebsd.go
package ipv4
const (
sysIP_OPTIONS = 0x1
sysIP_HDRINCL = 0x2
sysIP_TOS = 0x3
sysIP_TTL = 0x4
sysIP_RECVOPTS = 0x5
sysIP_RECVRETOPTS = 0x6
sysIP_RECVDSTADDR = 0x7
sysIP_SENDSRCADDR = 0x7
sysIP_RETOPTS = 0x8
sysIP_RECVIF = 0x14
sysIP_ONESBCAST = 0x17
sysIP_BINDANY = 0x18
sysIP_RECVTTL = 0x41
sysIP_MINTTL = 0x42
sysIP_DONTFRAG = 0x43
sysIP_RECVTOS = 0x44
sysIP_MULTICAST_IF = 0x9
sysIP_MULTICAST_TTL = 0xa
sysIP_MULTICAST_LOOP = 0xb
sysIP_ADD_MEMBERSHIP = 0xc
sysIP_DROP_MEMBERSHIP = 0xd
sysIP_MULTICAST_VIF = 0xe
sysIP_ADD_SOURCE_MEMBERSHIP = 0x46
sysIP_DROP_SOURCE_MEMBERSHIP = 0x47
sysIP_BLOCK_SOURCE = 0x48
sysIP_UNBLOCK_SOURCE = 0x49
sysMCAST_JOIN_GROUP = 0x50
sysMCAST_LEAVE_GROUP = 0x51
sysMCAST_JOIN_SOURCE_GROUP = 0x52
sysMCAST_LEAVE_SOURCE_GROUP = 0x53
sysMCAST_BLOCK_SOURCE = 0x54
sysMCAST_UNBLOCK_SOURCE = 0x55
sizeofSockaddrStorage = 0x80
sizeofSockaddrInet = 0x10
sizeofIPMreq = 0x8
sizeofIPMreqn = 0xc
sizeofIPMreqSource = 0xc
sizeofGroupReq = 0x88
sizeofGroupSourceReq = 0x108
)
type sockaddrStorage struct {
Len uint8
Family uint8
X__ss_pad1 [6]uint8
X__ss_align int64
X__ss_pad2 [112]uint8
}
type sockaddrInet struct {
Len uint8
Family uint8
Port uint16
Addr [4]byte /* in_addr */
Zero [8]uint8
}
type ipMreq struct {
Multiaddr [4]byte /* in_addr */
Interface [4]byte /* in_addr */
}
type ipMreqn struct {
Multiaddr [4]byte /* in_addr */
Address [4]byte /* in_addr */
Ifindex int32
}
type ipMreqSource struct {
Multiaddr [4]byte /* in_addr */
Sourceaddr [4]byte /* in_addr */
Interface [4]byte /* in_addr */
}
type groupReq struct {
Interface uint32
Group sockaddrStorage
}
type groupSourceReq struct {
Interface uint32
Group sockaddrStorage
Source sockaddrStorage
}

122
vendor/golang.org/x/net/ipv6/zsys_freebsd_arm64.go generated vendored Normal file
View File

@ -0,0 +1,122 @@
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs defs_freebsd.go
package ipv6
const (
sysIPV6_UNICAST_HOPS = 0x4
sysIPV6_MULTICAST_IF = 0x9
sysIPV6_MULTICAST_HOPS = 0xa
sysIPV6_MULTICAST_LOOP = 0xb
sysIPV6_JOIN_GROUP = 0xc
sysIPV6_LEAVE_GROUP = 0xd
sysIPV6_PORTRANGE = 0xe
sysICMP6_FILTER = 0x12
sysIPV6_CHECKSUM = 0x1a
sysIPV6_V6ONLY = 0x1b
sysIPV6_IPSEC_POLICY = 0x1c
sysIPV6_RTHDRDSTOPTS = 0x23
sysIPV6_RECVPKTINFO = 0x24
sysIPV6_RECVHOPLIMIT = 0x25
sysIPV6_RECVRTHDR = 0x26
sysIPV6_RECVHOPOPTS = 0x27
sysIPV6_RECVDSTOPTS = 0x28
sysIPV6_USE_MIN_MTU = 0x2a
sysIPV6_RECVPATHMTU = 0x2b
sysIPV6_PATHMTU = 0x2c
sysIPV6_PKTINFO = 0x2e
sysIPV6_HOPLIMIT = 0x2f
sysIPV6_NEXTHOP = 0x30
sysIPV6_HOPOPTS = 0x31
sysIPV6_DSTOPTS = 0x32
sysIPV6_RTHDR = 0x33
sysIPV6_RECVTCLASS = 0x39
sysIPV6_AUTOFLOWLABEL = 0x3b
sysIPV6_TCLASS = 0x3d
sysIPV6_DONTFRAG = 0x3e
sysIPV6_PREFER_TEMPADDR = 0x3f
sysIPV6_BINDANY = 0x40
sysIPV6_MSFILTER = 0x4a
sysMCAST_JOIN_GROUP = 0x50
sysMCAST_LEAVE_GROUP = 0x51
sysMCAST_JOIN_SOURCE_GROUP = 0x52
sysMCAST_LEAVE_SOURCE_GROUP = 0x53
sysMCAST_BLOCK_SOURCE = 0x54
sysMCAST_UNBLOCK_SOURCE = 0x55
sysIPV6_PORTRANGE_DEFAULT = 0x0
sysIPV6_PORTRANGE_HIGH = 0x1
sysIPV6_PORTRANGE_LOW = 0x2
sizeofSockaddrStorage = 0x80
sizeofSockaddrInet6 = 0x1c
sizeofInet6Pktinfo = 0x14
sizeofIPv6Mtuinfo = 0x20
sizeofIPv6Mreq = 0x14
sizeofGroupReq = 0x88
sizeofGroupSourceReq = 0x108
sizeofICMPv6Filter = 0x20
)
type sockaddrStorage struct {
Len uint8
Family uint8
X__ss_pad1 [6]uint8
X__ss_align int64
X__ss_pad2 [112]uint8
}
type sockaddrInet6 struct {
Len uint8
Family uint8
Port uint16
Flowinfo uint32
Addr [16]byte /* in6_addr */
Scope_id uint32
}
type inet6Pktinfo struct {
Addr [16]byte /* in6_addr */
Ifindex uint32
}
type ipv6Mtuinfo struct {
Addr sockaddrInet6
Mtu uint32
}
type ipv6Mreq struct {
Multiaddr [16]byte /* in6_addr */
Interface uint32
}
type groupReq struct {
Interface uint32
Group sockaddrStorage
}
type groupSourceReq struct {
Interface uint32
Group sockaddrStorage
Source sockaddrStorage
}
type icmpv6Filter struct {
Filt [8]uint32
}

View File

@ -23,6 +23,7 @@ const (
HCI_CHANNEL_USER = 1
HCI_CHANNEL_MONITOR = 2
HCI_CHANNEL_CONTROL = 3
HCI_CHANNEL_LOGGING = 4
)
// Socketoption Level

View File

@ -190,6 +190,7 @@ struct ltchars {
#include <linux/can.h>
#include <linux/capability.h>
#include <linux/cryptouser.h>
#include <linux/devlink.h>
#include <linux/errqueue.h>
#include <linux/falloc.h>
#include <linux/fanotify.h>
@ -524,6 +525,7 @@ ccflags="$@"
$2 ~ /^(HDIO|WIN|SMART)_/ ||
$2 ~ /^CRYPTO_/ ||
$2 ~ /^TIPC_/ ||
$2 ~ /^DEVLINK_/ ||
$2 !~ "WMESGLEN" &&
$2 ~ /^W[A-Z0-9]+$/ ||
$2 ~/^PPPIOC/ ||

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -461,6 +461,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -464,6 +464,12 @@ const (
CSUSP = 0x1a
DAXFS_MAGIC = 0x64646178
DEBUGFS_MAGIC = 0x64626720
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
DEVLINK_GENL_NAME = "devlink"
DEVLINK_GENL_VERSION = 0x1
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
DEVPTS_SUPER_MAGIC = 0x1cd1
DMA_BUF_MAGIC = 0x444d4142
DT_BLK = 0x6

View File

@ -2626,3 +2626,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2640,3 +2640,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2617,3 +2617,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2619,3 +2619,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2623,3 +2623,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2621,3 +2621,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2621,3 +2621,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2623,3 +2623,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2629,3 +2629,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2629,3 +2629,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2647,3 +2647,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2643,3 +2643,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -2624,3 +2624,132 @@ const (
SYSLOG_ACTION_SIZE_UNREAD = 9
SYSLOG_ACTION_SIZE_BUFFER = 10
)
const (
DEVLINK_CMD_UNSPEC = 0x0
DEVLINK_CMD_GET = 0x1
DEVLINK_CMD_SET = 0x2
DEVLINK_CMD_NEW = 0x3
DEVLINK_CMD_DEL = 0x4
DEVLINK_CMD_PORT_GET = 0x5
DEVLINK_CMD_PORT_SET = 0x6
DEVLINK_CMD_PORT_NEW = 0x7
DEVLINK_CMD_PORT_DEL = 0x8
DEVLINK_CMD_PORT_SPLIT = 0x9
DEVLINK_CMD_PORT_UNSPLIT = 0xa
DEVLINK_CMD_SB_GET = 0xb
DEVLINK_CMD_SB_SET = 0xc
DEVLINK_CMD_SB_NEW = 0xd
DEVLINK_CMD_SB_DEL = 0xe
DEVLINK_CMD_SB_POOL_GET = 0xf
DEVLINK_CMD_SB_POOL_SET = 0x10
DEVLINK_CMD_SB_POOL_NEW = 0x11
DEVLINK_CMD_SB_POOL_DEL = 0x12
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
DEVLINK_CMD_ESWITCH_GET = 0x1d
DEVLINK_CMD_ESWITCH_SET = 0x1e
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
DEVLINK_CMD_MAX = 0x3c
DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2
DEVLINK_PORT_TYPE_IB = 0x3
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
DEVLINK_ATTR_UNSPEC = 0x0
DEVLINK_ATTR_BUS_NAME = 0x1
DEVLINK_ATTR_DEV_NAME = 0x2
DEVLINK_ATTR_PORT_INDEX = 0x3
DEVLINK_ATTR_PORT_TYPE = 0x4
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
DEVLINK_ATTR_SB_INDEX = 0xb
DEVLINK_ATTR_SB_SIZE = 0xc
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
DEVLINK_ATTR_SB_THRESHOLD = 0x15
DEVLINK_ATTR_SB_TC_INDEX = 0x16
DEVLINK_ATTR_SB_OCC_CUR = 0x17
DEVLINK_ATTR_SB_OCC_MAX = 0x18
DEVLINK_ATTR_ESWITCH_MODE = 0x19
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
DEVLINK_ATTR_DPIPE_MATCH = 0x28
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
DEVLINK_ATTR_DPIPE_HEADER = 0x32
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
DEVLINK_ATTR_DPIPE_FIELD = 0x38
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
DEVLINK_ATTR_PAD = 0x3d
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
DEVLINK_ATTR_MAX = 0x80
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
)

View File

@ -108,7 +108,7 @@ func (k Key) GetStringValue(name string) (val string, valtype uint32, err error)
if len(data) == 0 {
return "", typ, nil
}
u := (*[1 << 29]uint16)(unsafe.Pointer(&data[0]))[:len(data)/2]
u := (*[1 << 29]uint16)(unsafe.Pointer(&data[0]))[: len(data)/2 : len(data)/2]
return syscall.UTF16ToString(u), typ, nil
}
@ -185,8 +185,7 @@ func ExpandString(value string) (string, error) {
return "", err
}
if n <= uint32(len(r)) {
u := (*[1 << 29]uint16)(unsafe.Pointer(&r[0]))[:]
return syscall.UTF16ToString(u), nil
return syscall.UTF16ToString(r[:n]), nil
}
r = make([]uint16, n)
}
@ -208,7 +207,7 @@ func (k Key) GetStringsValue(name string) (val []string, valtype uint32, err err
if len(data) == 0 {
return nil, typ, nil
}
p := (*[1 << 29]uint16)(unsafe.Pointer(&data[0]))[:len(data)/2]
p := (*[1 << 29]uint16)(unsafe.Pointer(&data[0]))[: len(data)/2 : len(data)/2]
if len(p) == 0 {
return nil, typ, nil
}
@ -299,7 +298,7 @@ func (k Key) setStringValue(name string, valtype uint32, value string) error {
if err != nil {
return err
}
buf := (*[1 << 29]byte)(unsafe.Pointer(&v[0]))[:len(v)*2]
buf := (*[1 << 29]byte)(unsafe.Pointer(&v[0]))[: len(v)*2 : len(v)*2]
return k.setValue(name, valtype, buf)
}
@ -329,7 +328,7 @@ func (k Key) SetStringsValue(name string, value []string) error {
ss += s + "\x00"
}
v := utf16.Encode([]rune(ss + "\x00"))
buf := (*[1 << 29]byte)(unsafe.Pointer(&v[0]))[:len(v)*2]
buf := (*[1 << 29]byte)(unsafe.Pointer(&v[0]))[: len(v)*2 : len(v)*2]
return k.setValue(name, MULTI_SZ, buf)
}

6
vendor/modules.txt vendored
View File

@ -41,7 +41,7 @@ github.com/k-sone/critbitgo
github.com/kardianos/service
# github.com/miekg/dns v1.1.22
github.com/miekg/dns
# golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
# golang.org/x/crypto v0.0.0-20191029031824-8986dd9e96cf
golang.org/x/crypto/curve25519
golang.org/x/crypto/ed25519
golang.org/x/crypto/ed25519/internal/edwards25519
@ -50,7 +50,7 @@ golang.org/x/crypto/nacl/box
golang.org/x/crypto/nacl/secretbox
golang.org/x/crypto/poly1305
golang.org/x/crypto/salsa20/salsa
# golang.org/x/net v0.0.0-20191021144547-ec77196f6094
# golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271
golang.org/x/net/bpf
golang.org/x/net/http/httpguts
golang.org/x/net/http2
@ -62,7 +62,7 @@ golang.org/x/net/internal/socks
golang.org/x/net/ipv4
golang.org/x/net/ipv6
golang.org/x/net/proxy
# golang.org/x/sys v0.0.0-20191026070338-33540a1f6037
# golang.org/x/sys v0.0.0-20191029155521-f43be2a4598c
golang.org/x/sys/cpu
golang.org/x/sys/unix
golang.org/x/sys/windows