vendor: bump all direct dependencies
Just good hygiene. Signed-off-by: Casey Callendrello <cdc@redhat.com>
This commit is contained in:
15
vendor/github.com/safchain/ethtool/ethtool_cmd.go
generated
vendored
15
vendor/github.com/safchain/ethtool/ethtool_cmd.go
generated
vendored
@ -28,8 +28,9 @@ package ethtool
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
type EthtoolCmd struct { /* ethtool.c: struct ethtool_cmd */
|
||||
@ -121,10 +122,10 @@ func (e *Ethtool) CmdGet(ecmd *EthtoolCmd, intf string) (uint32, error) {
|
||||
ifr_data: uintptr(unsafe.Pointer(ecmd)),
|
||||
}
|
||||
|
||||
_, _, ep := syscall.Syscall(syscall.SYS_IOCTL, uintptr(e.fd),
|
||||
_, _, ep := unix.Syscall(unix.SYS_IOCTL, uintptr(e.fd),
|
||||
SIOCETHTOOL, uintptr(unsafe.Pointer(&ifr)))
|
||||
if ep != 0 {
|
||||
return 0, syscall.Errno(ep)
|
||||
return 0, ep
|
||||
}
|
||||
|
||||
var speedval uint32 = (uint32(ecmd.Speed_hi) << 16) |
|
||||
@ -149,10 +150,10 @@ func (e *Ethtool) CmdSet(ecmd *EthtoolCmd, intf string) (uint32, error) {
|
||||
ifr_data: uintptr(unsafe.Pointer(ecmd)),
|
||||
}
|
||||
|
||||
_, _, ep := syscall.Syscall(syscall.SYS_IOCTL, uintptr(e.fd),
|
||||
_, _, ep := unix.Syscall(unix.SYS_IOCTL, uintptr(e.fd),
|
||||
SIOCETHTOOL, uintptr(unsafe.Pointer(&ifr)))
|
||||
if ep != 0 {
|
||||
return 0, syscall.Errno(ep)
|
||||
return 0, unix.Errno(ep)
|
||||
}
|
||||
|
||||
var speedval uint32 = (uint32(ecmd.Speed_hi) << 16) |
|
||||
@ -178,10 +179,10 @@ func (e *Ethtool) CmdGetMapped(intf string) (map[string]uint64, error) {
|
||||
ifr_data: uintptr(unsafe.Pointer(&ecmd)),
|
||||
}
|
||||
|
||||
_, _, ep := syscall.Syscall(syscall.SYS_IOCTL, uintptr(e.fd),
|
||||
_, _, ep := unix.Syscall(unix.SYS_IOCTL, uintptr(e.fd),
|
||||
SIOCETHTOOL, uintptr(unsafe.Pointer(&ifr)))
|
||||
if ep != 0 {
|
||||
return nil, syscall.Errno(ep)
|
||||
return nil, ep
|
||||
}
|
||||
|
||||
var result = make(map[string]uint64)
|
||||
|
Reference in New Issue
Block a user