]> git.proxmox.com Git - ovs.git/commit
netdev-dpdk: linear buffer check with zero-copy
authorSivaprasad Tummala <Sivaprasad.Tummala@intel.com>
Thu, 26 Mar 2020 12:09:20 +0000 (12:09 +0000)
committerIan Stokes <ian.stokes@intel.com>
Wed, 12 Aug 2020 17:19:42 +0000 (18:19 +0100)
commit71417ef0119e1b522edf928b453753ab8ab513d9
tree3eaae1c7ef0d2d9ac626e9f1d77f05be07603c2c
parentb8d42f875c8c876008e296ec485d6bbac08bc4c9
netdev-dpdk: linear buffer check with zero-copy

As of DPDK 19.11, in order to use dequeue-zero-copy in DPDK Vhost library,
the application has to disable the linear buffer option. Hence
dequeue-zero-copy is not supported for vhost application that requires
linear buffers.

An alternative DPDK based approach to disable the linear buffers within
the vhost library itself was proposed in [1], however the consensus was
that application should be responsible for disabling linear buffers.

As such this patch disables linear buffers when zero-copy is enabled.

[1]    https://patches.dpdk.org/patch/67200/

Fixes: 127b6a6eea02 ("dpdk: Update to use DPDK 19.11.")
Signed-off-by: Sivaprasad Tummala <Sivaprasad.Tummala@intel.com>
Acked-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/netdev-dpdk.c