Add entries in the programmer's guide, API index, maintainer's file
and release notes for the event crypto adapter.
Signed-off-by: Abhinandan Gujjar
---
MAINTAINERS| 7 +
doc/api/doxy-api-index.md | 1 +
doc/guides/prog_guide/event_cry
Signed-off-by: Abhinandan Gujjar
---
lib/librte_eventdev/meson.build | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/librte_eventdev/meson.build b/lib/librte_eventdev/meson.build
index e1e22a5..d3d305a 100644
--- a/lib/librte_eventdev/meson.build
+++ b/lib/librte_e
Signed-off-by: Abhinandan Gujjar
---
test/test/Makefile| 1 +
test/test/test_event_crypto_adapter.c | 866 ++
2 files changed, 867 insertions(+)
create mode 100644 test/test/test_event_crypto_adapter.c
diff --git a/test/test/Makefile b/test/
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
config/common_base |1 +
lib/Makefile |3 +-
lib/librte_eventdev/Makefile |3 +
lib/librte_eventdev/rte_event_crypt
Signed-off-by: Abhinandan Gujjar
---
lib/librte_eventdev/rte_eventdev.c | 25 +
lib/librte_eventdev/rte_eventdev.h | 35 +++
lib/librte_eventdev/rte_eventdev_pmd.h | 176 +
3 files changed, 236 insertions(+)
diff --git a/lib/librte_eventdev/rte_e
Signed-off-by: Rosen Xu
Signed-off-by: Yanglong Wu
---
config/common_base | 1 +
drivers/raw/Makefile | 1 +
drivers/raw/ifpga_rawdev/Makefile | 36 ++
drivers/raw/ifpga_rawdev/ifpga_rawdev.c| 592 ++
Intel FPGA BUS in DPDK
-
This patch set introduces Intel FPGA BUS support in DPDK.
v5 updates:
===
- Fixed SHARED LIB Build issue
- Changed command name to IFPGA Rawdev name,
so remove pci library datastruct and function.
- Fixed PATCH v2/v3/v4 comments
v4
Signed-off-by: Rosen Xu
---
config/common_base | 5 +
drivers/bus/Makefile| 1 +
drivers/bus/ifpga/Makefile | 32 ++
drivers/bus/ifpga/ifpga_bus.c | 504
drivers/bus/ifpga/ifpga_commo
> Hi Hemant,
>
> > -Original Message-
> > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Hemant Agrawal
> > Sent: Tuesday, April 3, 2018 7:10 PM
> > To: dev@dpdk.org
> > Cc: Burakov, Anatoly ; tho...@monjalon.net
> > Subject: [dpdk-dev] [PATCH v4 2/2] eal/vfio: export internal vfio
>
Signed-off-by: Abhinandan Gujjar
---
doc/guides/prog_guide/cryptodev_lib.rst | 26 ++
1 file changed, 26 insertions(+)
diff --git a/doc/guides/prog_guide/cryptodev_lib.rst
b/doc/guides/prog_guide/cryptodev_lib.rst
index 066fe2d..57b3f6e 100644
--- a/doc/guides/prog_guide
The application may want to store private data along with the
rte_crypto_op that is transparent to the rte_cryptodev layer.
For e.g., If an eventdev based application is submitting a
crypto session-less operation and wants to indicate event
information required to construct a new event that will be
The application may want to store private data along with the
rte_cryptodev that is transparent to the rte_cryptodev layer.
For e.g., If an eventdev based application is submitting a
rte_cryptodev_sym_session operation and wants to indicate event
information required to construct a new event that w
Signed-off-by: Xiao Wang
Reviewed-by: Maxime Coquelin
---
doc/guides/nics/features/ifcvf.ini | 8
doc/guides/nics/ifcvf.rst | 85 ++
doc/guides/nics/index.rst | 1 +
doc/guides/rel_notes/release_18_05.rst | 9
4 files cha
If we want a virtio device to work in vDPA (vhost data path acceleration)
mode, we could add a "vdpa=1" devarg for this device to specify the mode.
This patch let virtio pmd skip device probe when detecting this parameter.
Signed-off-by: Xiao Wang
Reviewed-by: Maxime Coquelin
---
drivers/net/v
The IFCVF vDPA (vhost data path acceleration) driver provides support for
the Intel FPGA 100G VF (IFCVF). IFCVF's datapath is virtio ring compatible,
it works as a HW vhost backend which can send/receive packets to/from
virtio directly by DMA.
Different VF devices serve different virtio frontends
Currently eal vfio framework binds vfio group fd to the default
container fd during rte_vfio_setup_device, while in some cases,
e.g. vDPA (vhost data path acceleration), we want to put vfio group
to a separate container and program IOMMU via this container.
This patch adds some APIs to support con
This patch set has dependency on http://dpdk.org/dev/patchwork/patch/36772/
(vhost: support selective datapath).
IFCVF driver
The IFCVF vDPA (vhost data path acceleration) driver provides support for the
Intel FPGA 100G VF (IFCVF). IFCVF's datapath is virtio ring compatible, it
works
On Tue, Apr 03, 2018 at 11:16:26PM +0800, Tan, Jianfeng wrote:
> On 4/3/2018 8:20 PM, zhiyong.y...@intel.com wrote:
[...]
> > @@ -267,21 +270,27 @@ virtio_user_dev_setup(struct virtio_user_dev *dev)
> > dev->vhostfds = NULL;
> > dev->tapfds = NULL;
>
> Add a check here:
> if (dev->is_serve
> -Original Message-
> From: Guo, Jia
> Sent: Wednesday, April 4, 2018 2:17 AM
> To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh;
> Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing;
> tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan,
> Jianfeng
> C
There need a queue index check for RSS queue region
in order to aviod error from configuration.
Fixes: ecad87d22383 ("net/i40e: move RSS to flow API")
Signed-off-by: Wei Zhao
Tested-by: Peng Yuan
---
Changes in v2:
move check code out from the big loop.
change in v3:
delete unnecessary da
There need a queue index check for RSS queue region
in order to aviod error from configuration.
Fixes: ecad87d22383 ("net/i40e: move RSS to flow API")
Signed-off-by: Wei Zhao
Tested-by: Peng Yuan
---
Changes in v2:
move check code out from the big loop.
---
---
drivers/net/i40e/i40e_flow.c
> -Original Message-
> From: Zhang, Qi Z
> Sent: Wednesday, April 4, 2018 11:59 AM
> To: Zhao1, Wei ; dev@dpdk.org; sta...@dpdk.org
> Subject: RE: [PATCH] net/i40e: add flow RSS queue index check
>
>
>
> > -Original Message-
> > From: Zhao1, Wei
> > Sent: Wednesday, April 4, 20
On Wednesday 04 April 2018 08:59 AM, Jerin Jacob wrote:
> -Original Message-
>> Date: Mon, 2 Apr 2018 14:40:00 +0530
>> From: Pavan Nikhilesh
>> To: jerin.ja...@caviumnetworks.com, santosh.shu...@caviumnetworks.com,
>> tho...@monjalon.net, anatoly.bura...@intel.com, lir...@marvell.com,
On Monday 02 April 2018 02:39 PM, Pavan Nikhilesh wrote:
> Add driver/common folder and skeleton makefile for adding commonly used
> functions across mempool, event and net devices.
>
> Signed-off-by: Pavan Nikhilesh
> ---
Acked-by: Santosh Shukla
> -Original Message-
> From: Guo, Jia
> Sent: Wednesday, April 4, 2018 2:17 AM
> To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh;
> Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing;
> tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan,
> Jianfeng
> C
> -Original Message-
> From: Zhao1, Wei
> Sent: Tuesday, April 3, 2018 2:09 PM
> To: dev@dpdk.org
> Cc: Zhang, Qi Z ; Zhao1, Wei
> Subject: [PATCH] net/i40e: fix flow RSS queue region error
>
> Queue region comparison error in configuration parameters.
>
> Fixes: ecad87d22383 ("net/i40
Ok,I will add more comment in other independent patch
> -Original Message-
> From: Zhang, Qi Z
> Sent: Wednesday, April 4, 2018 11:59 AM
> To: Zhao1, Wei ; dev@dpdk.org; sta...@dpdk.org
> Subject: RE: [PATCH] net/i40e: add flow RSS queue index check
>
>
>
> > -Original Message-
Hi Gaetan,
> -Original Message-
> From: Gaëtan Rivet [mailto:gaetan.ri...@6wind.com]
> Sent: Wednesday, March 28, 2018 21:52
> To: Xu, Rosen
> Cc: dev@dpdk.org; Doherty, Declan ;
> Richardson, Bruce ; shreyansh.j...@nxp.com;
> Zhang, Tianfei ; Wu, Hao
> Subject: Re: [PATCH v3 4/6] driver
On 4/4/2018 9:47 AM, Tan, Jianfeng wrote:
-Original Message-
From: Guo, Jia
Sent: Tuesday, April 3, 2018 6:34 PM
To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh;
Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing;
tho...@monjalon.net; mo...@mellanox.com; Van Ha
> -Original Message-
> From: Zhao1, Wei
> Sent: Wednesday, April 4, 2018 11:19 AM
> To: dev@dpdk.org; sta...@dpdk.org
> Cc: Zhang, Qi Z ; Zhao1, Wei
> Subject: [PATCH] net/i40e: add flow RSS queue index check
>
> There need a queue index check for RSS queue region in order to aviod erro
From: Shagun Agrawal
Add devargs option to keep outer VLAN tag in Q-in-Q packets.
Signed-off-by: Shagun Agrawal
Signed-off-by: Kumar Sanghvi
Signed-off-by: Rahul Lakkireddy
---
doc/guides/nics/cxgbe.rst| 16
drivers/net/cxgbe/base/t4_regs.h | 54 ++
d
From: Shagun Agrawal
Update to new Rx/Tx offload API. Always set CRC stripping during
configuration, since it can't be disabled.
Signed-off-by: Shagun Agrawal
Signed-off-by: Kumar Sanghvi
Signed-off-by: Rahul Lakkireddy
---
drivers/net/cxgbe/cxgbe_ethdev.c | 87 ++
From: Kumar Sanghvi
Add documentation on running DPDK on SR-IOV virtual functions for
Chelsio NICs.
Signed-off-by: Kumar Sanghvi
Signed-off-by: Rahul Lakkireddy
---
doc/guides/nics/cxgbe.rst| 127 ++-
doc/guides/nics/features/cxgbevf.ini | 1 +
2
Patch 1 updates document for CXGBEVF PMD.
Patch 2 adds runtime devargs option to CXGBE PMD to keep/strip
outer vlan in Q-in-Q packets.
Patch 3 updates CXGBE PMD to use the new Rx/TX Offload API.
Thanks,
Rahul
Kumar Sanghvi (1):
doc: add CXGBEVF PMD documentation
Shagun Agrawal (2):
net/cxg
> -Original Message-
> From: Yang, Zhiyong
> Sent: Wednesday, April 4, 2018 11:32 AM
> To: Tan, Jianfeng; dev@dpdk.org
> Cc: maxime.coque...@redhat.com; tho...@monjalon.net; Wang, Zhihong;
> Bie, Tiwei
> Subject: RE: [PATCH v4 1/1] net/virtio-user: add support for server mode
>
> Hi Jiaf
There need a queue index check for RSS queue region
in order to aviod error from configuration.
Fixes: ecad87d22383 ("net/i40e: move RSS to flow API")
Signed-off-by: Wei Zhao
Tested-by: Peng Yuan
---
drivers/net/i40e/i40e_flow.c | 14 ++
1 file changed, 14 insertions(+)
diff --git
Hi Jiafeng,
Thanks for your review and comments firstly.
Reply inline.
> -Original Message-
> From: Tan, Jianfeng
> Sent: Tuesday, April 3, 2018 11:16 PM
> To: Yang, Zhiyong ; dev@dpdk.org
> Cc: maxime.coque...@redhat.com; tho...@monjalon.net; Wang, Zhihong
> ; Bie, Tiwei
> Subject: Re:
-Original Message-
> Date: Mon, 2 Apr 2018 14:40:00 +0530
> From: Pavan Nikhilesh
> To: jerin.ja...@caviumnetworks.com, santosh.shu...@caviumnetworks.com,
> tho...@monjalon.net, anatoly.bura...@intel.com, lir...@marvell.com,
> bruce.richard...@intel.com, fiona.tr...@intel.com, shreyansh
> -Original Message-
> From: Guo, Jia
> Sent: Tuesday, April 3, 2018 6:34 PM
> To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh;
> Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing;
> tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan,
> Jianfeng
> Cc:
Hi Jeff,
Looks much better now, but still have some issues to address.
> -Original Message-
> From: Guo, Jia
> Sent: Tuesday, April 3, 2018 6:34 PM
> To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh;
> Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing;
> tho...@mon
Hi all,
I'm using OVS2.3.0-DPDK2.2 and ixgbevf-4.0.3 under CentOS-7-3.10.0-514
I bond 2 vf port into bond1.
Now some IP can't ping through bond1, and bond1 also can't ping these IP.
but at the same time, some IP ping bond1 OK.
Is there someone got same problem as I said?
Thank you~
-Original Message-
> Date: Tue, 3 Apr 2018 12:27:53 +0530
> From: Hemant Agrawal
> To: Pavan Nikhilesh ,
> jerin.ja...@caviumnetworks.com, santosh.shu...@caviumnetworks.com,
> tho...@monjalon.net, anatoly.bura...@intel.com, lir...@marvell.com,
> bruce.richard...@intel.com, fiona.tr...@i
> -Original Message-
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jeff Guo
> Sent: Wednesday, April 4, 2018 2:17 AM
> To: step...@networkplumber.org; Richardson, Bruce
> ; Yigit, Ferruh ;
> Ananyev, Konstantin ;
> gaetan.ri...@6wind.com; Wu, Jingjing ;
> tho...@monjalon.net; mo.
> -Original Message-
> From: Guo, Jia
> Sent: Tuesday, April 3, 2018 6:34 PM
> To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh;
> Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing;
> tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan,
> Jianfeng
> Cc:
> -Original Message-
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tonghao Zhang
> Sent: Thursday, March 8, 2018 6:57 PM
> To: Xing, Beilei ; Dai, Wei ; Zhang,
> Helin ; Lu, Wenzhuo
> Cc: dev@dpdk.org; Tonghao Zhang
> Subject: Re: [dpdk-dev] [PATCH v3 0/5] ixgbe: fix bugs or ju
-Original Message-
> Date: Tue, 3 Apr 2018 16:44:14 -0500
> From: Erik Gabriel Carrillo
> To: pbhagavat...@caviumnetworks.com, jerin.ja...@caviumnetworks.com
> CC: dev@dpdk.org, hemant.agra...@nxp.com
> Subject: [PATCH v10 0/9] eventtimer: introduce event timer adapter
> X-Mailer: git-sen
Hi Shweta,
> -Original Message-
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shweta Choudaha
> Sent: Friday, February 23, 2018 7:59 PM
> To: dev@dpdk.org
> Cc: shweta.choud...@att.com
> Subject: [dpdk-dev] [PATCH 1/1] net/ixgbe: Add API to update SBP bit
>
> From: Shweta Chouda
> -Original Message-
> From: Pavan Nikhilesh [mailto:pbhagavat...@caviumnetworks.com]
> Sent: Tuesday, April 3, 2018 10:05 AM
> To: jerin.ja...@caviumnetworks.com;
> santosh.shu...@caviumnetworks.com; Carrillo, Erik G
>
> Cc: dev@dpdk.org; Pavan Nikhilesh
> Subject: [dpdk-dev] [PATCH v3
Hi Shweta,
> -Original Message-
> From: Shweta Choudaha [mailto:shweta.choud...@gmail.com]
> Sent: Thursday, March 22, 2018 1:36 AM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo ; Ananyev, Konstantin
> ; Zhang, Helin ;
> Yigit, Ferruh ; shweta.choud...@att.com
> Subject: [PATCH v2 1/1] net/ixgbe: A
> -Original Message-
> From: Pavan Nikhilesh [mailto:pbhagavat...@caviumnetworks.com]
> Sent: Tuesday, April 3, 2018 10:05 AM
> To: jerin.ja...@caviumnetworks.com;
> santosh.shu...@caviumnetworks.com; Carrillo, Erik G
>
> Cc: dev@dpdk.org; Pavan Nikhilesh
> Subject: [dpdk-dev] [PATCH v3
In some cases we want vhost dequeue work in interrupt mode to
release cpus to others when no data to transmit. So we install
interrupt handler of vhost device and interrupt vectors for each
rx queue when creating new backend according to vhost intrerupt
configuration. Thus, applications could regis
Hi Gaetan,
> -Original Message-
> From: Gaëtan Rivet [mailto:gaetan.ri...@6wind.com]
> Sent: Wednesday, March 28, 2018 21:29
> To: Xu, Rosen
> Cc: dev@dpdk.org; Doherty, Declan ;
> Richardson, Bruce ; shreyansh.j...@nxp.com;
> Zhang, Tianfei ; Wu, Hao
> Subject: Re: [PATCH v3 3/6] mk/rte
Hi Gaetan,
I have squash this patch with their relevant counterparts.
For PATCH v4 and later version CONFIG_RTE_LIBRTE_IFPGA_BUS is squashed with
ifpga_bus driver,
And CONFIG_RTE_LIBRTE_IFPGA_RAWDEV is squashed with ifpga_rawdev driver.
Is it ok?
> -Original Message-
> From: Gaëtan Rivet
Hello Gaetan,
Are my answers ok?
If so, could you reply it?
Many thanks to you.
> -Original Message-
> From: Xu, Rosen
> Sent: Sunday, April 01, 2018 0:26
> To: gaetan.ri...@6wind.com
> Cc: dev@dpdk.org; Doherty, Declan ;
> Richardson, Bruce ; shreyansh.j...@nxp.com;
> Zhang, Tianfei ; Wu
> -Original Message-
> From: Pavan Nikhilesh [mailto:pbhagavat...@caviumnetworks.com]
> Sent: Tuesday, April 3, 2018 10:05 AM
> To: jerin.ja...@caviumnetworks.com;
> santosh.shu...@caviumnetworks.com; Carrillo, Erik G
>
> Cc: dev@dpdk.org; Pavan Nikhilesh
> Subject: [dpdk-dev] [PATCH v3
Hi Gaetan,
> -Original Message-
> From: Gaëtan Rivet [mailto:gaetan.ri...@6wind.com]
> Sent: Wednesday, March 28, 2018 21:18
> To: Xu, Rosen
> Cc: dev@dpdk.org; Doherty, Declan ;
> Richardson, Bruce ; shreyansh.j...@nxp.com;
> Zhang, Tianfei ; Wu, Hao
> Subject: Re: [PATCH v3 0/6] Introd
> -Original Message-
> From: Shreyansh Jain [mailto:shreyansh.j...@nxp.com]
> Sent: Tuesday, April 03, 2018 17:35
> To: Xu, Rosen
> Cc: dev@dpdk.org; Doherty, Declan ;
> Richardson, Bruce ; shreyansh.j...@nxp.com;
> Yigit, Ferruh ; Ananyev, Konstantin
> ; Zhang, Tianfei ;
> Wu, Hao ; gae
> -Original Message-
> From: Guo, Jia
> Sent: Tuesday, April 3, 2018 6:34 PM
> To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh;
> Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing;
> tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan,
> Jianfeng
> Cc:
Hello Shreyansh,
> -Original Message-
> From: Shreyansh Jain [mailto:shreyansh.j...@nxp.com]
> Sent: Tuesday, April 03, 2018 17:25
> To: Xu, Rosen
> Cc: dev@dpdk.org; Doherty, Declan ;
> Richardson, Bruce ; Yigit, Ferruh
> ; Ananyev, Konstantin
> ; Zhang, Tianfei ;
> Wu, Hao ; gaetan.ri..
> -Original Message-
> From: Zhang, Qi Z
> Sent: Tuesday, April 3, 2018 10:03 PM
> To: Zhao1, Wei ; dev@dpdk.org
> Subject: RE: [PATCH] net/i40e: fix flow RSS tci using error
>
>
>
> > -Original Message-
> > From: Zhao1, Wei
> > Sent: Tuesday, April 3, 2018 2:10 PM
> > To: dev@
-Original Message-
> Date: Tue, 3 Apr 2018 10:19:03 +0200
> From: Mattias Rönnblom
> To: dev@dpdk.org
> CC: jerin.ja...@caviumnetworks.com, Mattias Rönnblom
> , bruce.richard...@intel.com
> Subject: [PATCH] eventdev: fix incorrect MP/MC tail updates in
> rte_event_ring
> X-Mailer: git-se
-Original Message-
> Date: Tue, 3 Apr 2018 10:28:59 +0100
> From: Ferruh Yigit
> To: Thomas Monjalon , John McNamara
> , Marko Kovacevic
> CC: dev@dpdk.org, Ferruh Yigit , Bruce Richardson
>
> Subject: [dpdk-dev] [PATCH] ethdev: rename folder to library name
> X-Mailer: git-send-email
> On Mar 30, 2018, at 6:47 AM, Thomas Monjalon wrote:
>
> There are some discussions about a specific part of the offload API:
> "To enable per-port offload, the offload should be set on both
> device configuration and queue setup."
>
> It means the application must repeat the port
On Tue, Apr 03, 2018 at 10:26:15AM +0200, Olivier Matz wrote:
> Hi,
>
> On Mon, Apr 02, 2018 at 11:50:03AM -0700, Yongseok Koh wrote:
> > When attaching a mbuf, indirect mbuf has to point to start of buffer of
> > direct mbuf. By adding buf_off field to rte_mbuf, this becomes more
> > flexible. In
On Wed, 4 Apr 2018 00:21:23 +0100
Anatoly Burakov wrote:
> This adds a new set of _contig API's to rte_memzone. For now,
> hugepage memory is always contiguous, but we need to prepare the
> drivers for the switch.
>
> Signed-off-by: Anatoly Burakov
Why not make fragmentation an optional flag
On Wed, 4 Apr 2018 00:21:15 +0100
Anatoly Burakov wrote:
> As we are preparing for dynamic memory allocation, we need to be
> able to handle holes in our malloc heap, hence we're switching to
> doubly linked list, and prepare infrastructure to support it.
>
> Since our heap is now aware where a
Currently, DPDK stores all pages as separate files in hugetlbfs.
This option will allow storing all pages in one file (one file
per memseg list).
We do this by using fallocate() calls on FreeBSD, however this is
only supported on fairly recent (4.3+) kernels, so ftruncate()
fallback is provided to
This API will enable application to register for notifications
on page allocations that are about to happen, giving the application
a chance to allow or deny the allocation when total memory utilization
as a result would be above specified limit on specified socket.
Signed-off-by: Anatoly Burakov
It is common sense to expect for DPDK process to not deallocate any
pages that were preallocated by "-m" or "--socket-mem" flags - yet,
currently, DPDK memory subsystem will do exactly that once it finds
that the pages are unused.
Fix this by marking pages as unfreebale, and preventing malloc from
This enables multiprocess synchronization for memory hotplug
requests at runtime (as opposed to initialization).
Basic workflow is the following. Primary process always does initial
mapping and unmapping, and secondary processes always follow primary
page map. Only one allocation request can be ac
Now that every other piece of the puzzle is in place, enable non-legacy
init mode.
Signed-off-by: Anatoly Burakov
---
lib/librte_eal/linuxapp/eal/eal.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/librte_eal/linuxapp/eal/eal.c
b/lib/librte_eal/linuxapp/eal/eal.c
index e7c6dcf..99c22
Before, we were aggregating multiple pages into one memseg, so the
number of memsegs was small. Now, each page gets its own memseg,
so the list of memsegs is huge. To accommodate the new memseg list
size and to keep the under-the-hood workings sane, the memseg list
is now not just a single list, bu
Add a new (non-legacy) memory init path for EAL. It uses the
new memory hotplug facilities.
If no -m or --socket-mem switches were specified, the new init
will not allocate anything, whereas if those switches were passed,
appropriate amounts of pages would be requested, just like for
legacy init.
Signed-off-by: Anatoly Burakov
---
lib/librte_eal/common/malloc_heap.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lib/librte_eal/common/malloc_heap.c
b/lib/librte_eal/common/malloc_heap.c
index 18c7b69..f8daf84 100644
--- a/lib/librte_eal/common/malloc_heap.c
+
For now, memory is always contiguous because legacy mem mode is
enabled unconditionally, but this function will be helpful down
the line when we implement support for allocating physically
non-contiguous memory. We can no longer guarantee physically
contiguous memory unless we're in legacy or IOVA_
Enable callbacks on first device attach, disable callbacks
on last device attach.
Signed-off-by: Anatoly Burakov
---
Notes:
v3:
- Moved callbacks to attach/detach as opposed to init
lib/librte_eal/linuxapp/eal/eal_vfio.c | 83 +++---
1 file changed, 77 inser
It's there, so we might as well use it. Some operations will be
sped up by that.
Since we have to allocate an fbarray for memzones, we have to do
it before we initialize memory subsystem, because that, in
secondary processes, will (later) allocate more fbarrays than the
primary process, which will
This set of changes enables rte_malloc to allocate and free memory
as needed. Currently, it is disabled because legacy mem mode is
enabled unconditionally.
The way it works is, first malloc checks if there is enough memory
already allocated to satisfy user's request. If there isn't, we try
and all
Each process will have its own callbacks. Callbacks will indicate
whether it's allocation and deallocation that's happened, and will
also provide start VA address and length of allocated block.
Since memory hotplug isn't supported on FreeBSD and in legacy mem
mode, it will not be possible to regis
Callbacks will be triggered just after allocation and just
before deallocation, to ensure that memory address space
referenced in the callback is always valid by the time
callback is called.
Signed-off-by: Anatoly Burakov
---
lib/librte_eal/common/malloc_heap.c| 21 +
Since we are going to need to map hugepages in both primary and
secondary processes, we need to know where we should look for
hugetlbfs mountpoints. So, share those with secondary processes,
and map them on init.
Signed-off-by: Anatoly Burakov
---
lib/librte_eal/bsdapp/eal/eal.c
Nothing uses this code yet. The bulk of it is copied from old
memory allocation code (linuxapp eal_memory.c). We provide an
EAL-internal API to allocate either one page or multiple pages,
guaranteeing that we'll get contiguous VA for all of the pages
that we requested.
Not supported on FreeBSD.
L
In preparation for implementing multiprocess support, we are adding
a version number to memseg lists. We will not need any locks, because
memory hotplug will have a global lock (so any time memory map and
thus version number might change, we will already be holding a lock).
There are two ways of i
Secondary initialization will just sync memory map with
primary process.
Signed-off-by: Anatoly Burakov
---
Notes:
v3:
- Improved handling of EAL hugepage info
lib/librte_eal/common/eal_common_memory.c | 1 +
lib/librte_eal/linuxapp/eal/eal_memory.c | 18 +++---
2 files c
For non-legacy memory init mode, instead of looking at generic
sysfs path, look at sysfs paths pertaining to each NUMA node
for hugepage counts. Note that per-NUMA node path does not
provide information regarding reserved pages, so we might not
get the best info from these paths, but this saves us
rte_fbarray is a simple indexed array stored in shared memory
via mapping files into memory. Rationale for its existence is the
following: since we are going to map memory page-by-page, there
could be quite a lot of memory segments to keep track of (for
smaller page sizes, page count can easily rea
Signed-off-by: Anatoly Burakov
---
lib/librte_eal/common/eal_common_memzone.c | 42 +++---
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/lib/librte_eal/common/eal_common_memzone.c
b/lib/librte_eal/common/eal_common_memzone.c
index 36d2553..88f401f 100644
Signed-off-by: Anatoly Burakov
---
lib/librte_eal/linuxapp/eal/eal_vfio.c | 45 --
1 file changed, 21 insertions(+), 24 deletions(-)
diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.c
b/lib/librte_eal/linuxapp/eal/eal_vfio.c
index 2421d51..2a34ae9 100644
--- a/l
This isn't used anywhere yet, but the support is now there. Also,
adding cleanup to allocation procedures, so that if we fail to
allocate everything we asked for, we can free all of it back.
Signed-off-by: Anatoly Burakov
---
lib/librte_eal/bsdapp/eal/eal_memalloc.c | 15 +++
lib/librte_eal/c
Currently it is not possible to use memory that is not owned by DPDK to
perform DMA. This scenarion might be used in vhost applications (like
SPDK) where guest send its own memory table. To fill this gap provide
API to allow registering arbitrary address in VFIO container.
Signed-off-by: Pawel Wod
This adds a "--legacy-mem" command-line switch. It will be used to
go back to the old memory behavior, one where we can't dynamically
allocate/free memory (the downside), but one where the user can
get physically contiguous memory, like before (the upside).
For now, nothing but the legacy behavior
Signed-off-by: Anatoly Burakov
---
drivers/crypto/dpaa_sec/dpaa_sec.c | 19 +--
1 file changed, 5 insertions(+), 14 deletions(-)
diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c
b/drivers/crypto/dpaa_sec/dpaa_sec.c
index b04510f..a14e669 100644
--- a/drivers/crypto/dpaa_sec/dpaa_
Signed-off-by: Anatoly Burakov
---
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 14 --
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
index d38fc49..45fd41e 100644
--- a/drivers/bus/fslmc/p
Signed-off-by: Anatoly Burakov
---
drivers/net/mlx5/mlx5_mr.c | 18 --
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_mr.c b/drivers/net/mlx5/mlx5_mr.c
index 2bf1f9c..d8c04dc 100644
--- a/drivers/net/mlx5/mlx5_mr.c
+++ b/drivers/net/mlx5/mlx5_
Signed-off-by: Anatoly Burakov
---
test/test/test_malloc.c | 40 +++-
test/test/test_memory.c | 23 +++--
test/test/test_memzone.c | 53
3 files changed, 74 insertions(+), 42 deletions(-)
diff --gi
Signed-off-by: Anatoly Burakov
---
drivers/net/mlx4/mlx4_mr.c | 17 +++--
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/drivers/net/mlx4/mlx4_mr.c b/drivers/net/mlx4/mlx4_mr.c
index 9a1e4de..47dd542 100644
--- a/drivers/net/mlx4/mlx4_mr.c
+++ b/drivers/net/mlx4/mlx4_m
Signed-off-by: Anatoly Burakov
---
drivers/bus/dpaa/rte_dpaa_bus.h | 12 +---
drivers/event/dpaa/Makefile | 3 +++
drivers/mempool/dpaa/Makefile | 3 +++
drivers/net/dpaa/Makefile | 3 +++
4 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/drivers/bus/dpaa/rte
Signed-off-by: Anatoly Burakov
---
drivers/crypto/dpaa_sec/dpaa_sec.c | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c
b/drivers/crypto/dpaa_sec/dpaa_sec.c
index c5191ce..b04510f 100644
--- a/drivers/crypto/dpaa_sec/dpaa_sec.c
+++
This can be used as a virt2iova function that only looks up
memory that is owned by DPDK (as opposed to doing pagemap walks).
Using this will result in less dependency on internals of mem API.
Signed-off-by: Anatoly Burakov
---
lib/librte_eal/common/eal_common_memory.c | 37
Signed-off-by: Anatoly Burakov
---
drivers/net/mlx5/Makefile | 3 +++
drivers/net/mlx5/mlx5.c | 24 +++-
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile
index afda411..25c8e10 100644
--- a/drivers/net/mlx
1 - 100 of 332 matches
Mail list logo