mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
qat: fix formatting errors
This commit is contained in:
parent
b864ec01da
commit
a4b3f7f068
@ -20,10 +20,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"path"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
@ -153,7 +153,7 @@ func getDeviceID(pciAddr string) (string, error) {
|
|||||||
// bindDevice the device where id is the pci address to the specified device driver
|
// bindDevice the device where id is the pci address to the specified device driver
|
||||||
func bindDevice(dpdkDriver string, id string) error {
|
func bindDevice(dpdkDriver string, id string) error {
|
||||||
|
|
||||||
devicePCIAddr := "0000:"+id
|
devicePCIAddr := "0000:" + id
|
||||||
unbindKernelDevicePath := path.Join(pciDeviceDir, devicePCIAddr, driverUnbindSuffix)
|
unbindKernelDevicePath := path.Join(pciDeviceDir, devicePCIAddr, driverUnbindSuffix)
|
||||||
bindDevicePath := path.Join(pciDriverDir, dpdkDriver, newIDSuffix)
|
bindDevicePath := path.Join(pciDriverDir, dpdkDriver, newIDSuffix)
|
||||||
devicePCIAddrBytes := []byte(devicePCIAddr)
|
devicePCIAddrBytes := []byte(devicePCIAddr)
|
||||||
|
Loading…
Reference in New Issue
Block a user