From dc812d9a71f2f5105e4aaba50fd98ea3b0b50a9b Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Mon, 16 Dec 2019 10:42:25 +0100 Subject: rdma: introduce direct verb for Cx4/5 tx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Direct Verb allows for direct access to NIC HW rx/tx rings. This patch introduce TX direct verb support for Mellanox ConnectX-4/5 adapters. 'dv' mode must be explicitely selected at interface creation to benefit from this. Type: feature Change-Id: If830ba9f33db73299acdbddc68b5c09eaf6add98 Signed-off-by: Benoît Ganne --- src/plugins/rdma/rdma_doc.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/plugins/rdma/rdma_doc.md') diff --git a/src/plugins/rdma/rdma_doc.md b/src/plugins/rdma/rdma_doc.md index 3c79f9aefd3..3fed5b6fc49 100644 --- a/src/plugins/rdma/rdma_doc.md +++ b/src/plugins/rdma/rdma_doc.md @@ -44,13 +44,13 @@ vpp# set int st rdma-0 up vpp# ping 1.1.1.100` ``` -### Containers support +## Containers support It should work in containers as long as: - the `ib_uverbs` module is loaded - the device nodes `/dev/infiniband/uverbs[0-9]+` are usable from the container (but see [security considerations](#Security considerations)) -### SR-IOV VFs support +## SR-IOV VFs support It should work on SR-IOV VFs the same way it does with PFs. Because of VFs security containment features, make sure the MAC address of the rdma VPP interface matches the MAC address assigned to the underlying VF. @@ -68,3 +68,8 @@ aware of the [security considerations](#Security considerations)): ``` host# ip l set dev enp94s0f0 vf 0 spoof off trust on ``` + +## Direct Verb mode +Direct Verb allows the driver to access the NIC HW RX/TX rings directly +instead of having to go through libibverb and suffering associated overhead. +It will be automatically selected if the adapter supports it. -- cgit 1.2.3-korg