-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support generic userspace datapath & merge userspace and kernelspace …
…datapath entity
- Loading branch information
Showing
12 changed files
with
245 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
package entity | ||
|
||
// physical NIC port | ||
type PhysicalPort struct { | ||
Name string `bson:"name" json:"name"` | ||
MTU int `bson:"MTU" json:"MTU"` | ||
VlanTags []int32 `bson:"vlanTags" MTC:"vlanTags"` | ||
} | ||
|
||
// physical NIC port dpdk enabled | ||
type DPDKPhysicalPort struct { | ||
Name string `bson:"name" json:"name"` | ||
MTU int `bson:"MTU" json:"MTU"` | ||
PCIID string `bson:"pciID" json:"pciID"` | ||
VlanTags []int32 `bson:"vlanTags" json:"vlanTags"` | ||
} | ||
|
||
// kernel space datapath | ||
type OVSNetwork struct { | ||
BridgeName string `bson:"bridgeName" json:"bridgeName"` | ||
PhysicalPorts []PhysicalPort `bson:"physicalPorts" json:"physicalPorts"` | ||
} | ||
|
||
// userspace space datapath | ||
type OVSUserspaceNetwork struct { | ||
BridgeName string `bson:"bridgeName" json:"bridgeName"` | ||
// exclusive fields | ||
PhysicalPorts []PhysicalPort `bson:"physicalPorts" json:"physicalPorts"` | ||
DPDKPhysicalPorts []DPDKPhysicalPort `bson:"dpdkPhysicalPorts" json:"dpdkPhysicalPorts"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.