summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorGaetan Rivet <grive@u256.net>2020-11-10 12:51:49 +0100
committerIlya Maximets <i.maximets@ovn.org>2020-11-16 17:47:11 +0100
commitf4336f504b17c0a2d9f47eb1ae1b7b140e3cc72a (patch)
tree0b3c0e0216217b38f1c0d7b262794fc06bfbe25f /vswitchd
parentf9b0107dd04a4cb05877d9bb8bd200e0b344fadc (diff)
downloadopenvswitch-f4336f504b17c0a2d9f47eb1ae1b7b140e3cc72a.tar.gz
netdev-dpdk: Add option to configure VF MAC address.
In some cloud topologies, using DPDK VF representors in guest requires configuring a VF before it is assigned to the guest. A first basic option for such configuration is setting the VF MAC address. Add a key 'dpdk-vf-mac' to the 'options' column of the Interface table. This option can be used as such: $ ovs-vsctl add-port br0 dpdk-rep0 -- set Interface dpdk-rep0 type=dpdk \ options:dpdk-vf-mac=00:11:22:33:44:55 Suggested-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Eli Britstein <elibr@nvidia.com> Acked-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Gaetan Rivet <grive@u256.net> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/vswitch.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml
index d0890b843..89a876796 100644
--- a/vswitchd/vswitch.xml
+++ b/vswitchd/vswitch.xml
@@ -3275,6 +3275,24 @@ ovs-vsctl add-port br0 p0 -- set Interface p0 type=patch options:peer=p1 \
descriptors will be used by default.
</p>
</column>
+
+ <column name="options" key="dpdk-vf-mac">
+ <p>
+ Ethernet address to set for this VF interface. If unset then the
+ default MAC address is used:
+ </p>
+ <ul>
+ <li>
+ For most drivers, the default MAC address assigned by their
+ hardware.
+ </li>
+ <li>
+ For bifurcated drivers, the MAC currently used by the kernel
+ netdevice.
+ </li>
+ </ul>
+ <p>This option may only be used with dpdk VF representors.</p>
+ </column>
</group>
<group title="EMC (Exact Match Cache) Configuration">