On 2/13/2019 8:14 AM, Ophir Munk wrote:


-----Original Message-----
-----Original Message-----
From: Ian Stokes <ian.sto...@intel.com>
Sent: Tuesday, February 12, 2019 7:17 PM
To: Ilya Maximets <i.maxim...@samsung.com>; Ophir Munk
<ophi...@mellanox.com>; ovs-dev@openvswitch.org
Cc: Olga Shern <ol...@mellanox.com>; Kevin Traynor
<ktray...@redhat.com>; Asaf Penso <as...@mellanox.com>; Thomas
Monjalon <tho...@monjalon.net>
Subject: Re: [PATCH v1] doc: Add "Representors" topic document

On 2/12/2019 1:15 PM, Ilya Maximets wrote:
On 11.02.2019 3:01, Ophir Munk wrote:
This details how to configure representors ports.

Signed-off-by: Ophir Munk <ophi...@mellanox.com>
---
   Documentation/topics/dpdk/phy.rst | 80
+++++++++++++++++++++++++++++++++++++++
   1 file changed, 80 insertions(+)

...
+
+Representors
+------------
.....
+
+.. important::
+
+   Representors ports are configured prior to OVS invocation and
independently
+   of it, or by other means as well. Please consult a NIC vendor
instructions
+   on how to establish representors.

It'll be good to have configuration example for at least one
commonly used NIC (ixgbe/i40e ?). Or maybe a link to the docs where
the process
described.

What do you think ?
Ian, maybe you could add some example, since you have already tried
it in
practice?


Good call, I'll draw up an incremental and post here, if acceptable we
can roll it into the same patch.


In addition to Ian drawing - please find a link which details how to create VFs
for ConnectX-4 5 or 6 NICs:
https://docs.openstack.org/neutron/rocky/admin/config-ovs-offload.html
section "Create Compute virtual functions".
I will send an updated v2 with this reference.

Ian

After giving it more thought - IMHO it's better to add a new document under 
howto/ where NIC vendors could specify their configuration for representors 
setup.
We can then refer from this document to the new one.
Ilay, Ian - what do you think?


Hmmm, for ixgbe/i40e that are bound to a dpdk compatible driver it's just a case of creating the vf with something similar to below

echo 1 > /sys/bus/pci/devices/0000\:05\:00.0/max_vfs

And then adding it as described above

ovs-vsctl add-port br0 dpdk-rep5 -- set Interface dpdk-rep0 type=dpdk \
options:dpdk-devargs=0000:05:00.0,representor=[0]

I'm not sure that it would warrant it's own document for those devices, how does it compare to the mellanox creation of vfs? Is that more complex or different?

Ian
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to