Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #545 from jongwu/nic
Browse files Browse the repository at this point in the history
updateInterface: enable hot-add nic on arm64
  • Loading branch information
teawater authored May 20, 2019
2 parents 1f5f3ba + 5f9df74 commit 065b34d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 2 deletions.
3 changes: 1 addition & 2 deletions device.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const (
)

const (
rootBusPath = "/devices/pci0000:00"
pciBusMode = 0220
pciBusMode = 0220
)

var (
Expand Down
12 changes: 12 additions & 0 deletions device_amd64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Copyright (c) 2019 Intel Corporation
// Copyright (c) 2019 ARM Limited
//
// SPDX-License-Identifier: Apache-2.0
//

package main

const (
rootBusPath = "/devices/pci0000:00"
)
9 changes: 9 additions & 0 deletions device_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// Copyright (c) 2019 ARM Limited
//
// SPDX-License-Identifier: Apache-2.0
//

package main

const rootBusPath = "/devices/platform/4010000000.pcie/pci0000:00"
12 changes: 12 additions & 0 deletions device_ppc64le.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Copyright (c) 2019 Intel Corporation
// Copyright (c) 2019 ARM Limited
//
// SPDX-License-Identifier: Apache-2.0
//

package main

const (
rootBusPath = "/devices/pci0000:00"
)
12 changes: 12 additions & 0 deletions device_s390x.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Copyright (c) 2019 Intel Corporation
// Copyright (c) 2019 ARM Limited
//
// SPDX-License-Identifier: Apache-2.0
//

package main

const (
rootBusPath = "/devices/pci0000:00"
)

0 comments on commit 065b34d

Please sign in to comment.