summaryrefslogtreecommitdiffstats
path: root/etc/os-net-config
diff options
context:
space:
mode:
Diffstat (limited to 'etc/os-net-config')
-rw-r--r--etc/os-net-config/samples/ovs_dpdk.json20
-rw-r--r--etc/os-net-config/samples/ovs_dpdk.yaml21
2 files changed, 41 insertions, 0 deletions
diff --git a/etc/os-net-config/samples/ovs_dpdk.json b/etc/os-net-config/samples/ovs_dpdk.json
new file mode 100644
index 0000000..dc6706d
--- /dev/null
+++ b/etc/os-net-config/samples/ovs_dpdk.json
@@ -0,0 +1,20 @@
+{ "network_config": [
+ {
+ "type": "ovs_user_bridge",
+ "name": "br-link",
+ "members": [
+ {
+ "type": "ovs_dpdk_port",
+ "name": "dpdk0",
+ "driver": "igb_uio",
+ "members": [
+ {
+ "type": "interface",
+ "name": "eth1",
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/etc/os-net-config/samples/ovs_dpdk.yaml b/etc/os-net-config/samples/ovs_dpdk.yaml
new file mode 100644
index 0000000..18fee31
--- /dev/null
+++ b/etc/os-net-config/samples/ovs_dpdk.yaml
@@ -0,0 +1,21 @@
+# ovs_user_bridge type refers to the OVSUserBridge OVS ifup type, which will
+# have the datapath type set as 'netdev' for DPDK processing.
+# ovs_dpdk_port type refers to the OVSDPDKPort OVS ifup type, which will
+# add the port to the bridge with the interface type as 'dpdk'.
+
+network_config:
+ -
+ type: ovs_user_bridge
+ name: br-link
+ members:
+ -
+ type: ovs_dpdk_port
+ # dpdk0 name is generated by dpdk drivers after dpdk_nic_bind
+ name: dpdk0
+ # driver is optional argument, default driver is 'vfio-pci'
+ driver: igb_uio
+ members:
+ - type: interface
+ # nic style number does not work as of now. real interface name has
+ # to be provided here.
+ name: eth1