From bb1fcc4e0dbfa2e575570d75d209c5308be41f6d Mon Sep 17 00:00:00 2001 From: Saravanan KR Date: Tue, 5 Jul 2016 14:47:00 +0530 Subject: Add support for OVS DPDK Bridge and Port Add support in os-net-config for DPDK ports and OVS user bridges, and implement parameters which will be set by the TripleO Heat Templates when using TripleO. Implements: blueprint tripleo-ovs-dpdk Change-Id: Id4a23ced28b92a642c180a35c55080e5f4e2e05d --- etc/os-net-config/samples/ovs_dpdk.json | 20 ++++++++++++++++++++ etc/os-net-config/samples/ovs_dpdk.yaml | 21 +++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 etc/os-net-config/samples/ovs_dpdk.json create mode 100644 etc/os-net-config/samples/ovs_dpdk.yaml (limited to 'etc') 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 -- cgit 1.2.3-korg