History log of /dpdk/drivers/net/mana/mr.c (Results 1 – 6 of 6)
Revision Date Author Comments
# 0c7bc26b 09-Feb-2024 Long Li <longli@microsoft.com>

net/mana: handle MR cache expansion failure

On MR cache expansion failure, the request should fail as there is no
path to get a new MR into the tree. Attempting to insert a new MR to the
cache tree

net/mana: handle MR cache expansion failure

On MR cache expansion failure, the request should fail as there is no
path to get a new MR into the tree. Attempting to insert a new MR to the
cache tree will result in memory violation.

Fixes: 0f5db3c68ba7 ("net/mana: implement memory registration")
Cc: stable@dpdk.org

Signed-off-by: Long Li <longli@microsoft.com>

show more ...


# 9d61fe41 09-Feb-2024 Long Li <longli@microsoft.com>

net/mana: fix memory leak on MR allocation

Use a MR on the stack instead of allocating it. This fixes the memory
leak in the code where a MR is allocated but never freed.

Fixes: 0f5db3c68ba7 ("net/

net/mana: fix memory leak on MR allocation

Use a MR on the stack instead of allocating it. This fixes the memory
leak in the code where a MR is allocated but never freed.

Fixes: 0f5db3c68ba7 ("net/mana: implement memory registration")
Cc: stable@dpdk.org

Signed-off-by: Long Li <longli@microsoft.com>

show more ...


# 7d79530e 20-Jan-2024 Long Li <longli@microsoft.com>

net/mana: rename function that returns memory region

The function name mana_find_pmd_mr() is misleading as there might be
allocations to get a MR. Change function name to mana_alloc_pmd_mr().

Signe

net/mana: rename function that returns memory region

The function name mana_find_pmd_mr() is misleading as there might be
allocations to get a MR. Change function name to mana_alloc_pmd_mr().

Signed-off-by: Long Li <longli@microsoft.com>

show more ...


# 74decf3b 21-Sep-2023 Wei Hu <weh@microsoft.com>

net/mana: enable 32-bit build

Enable 32-bit build on x86 Linux. Fixed build warnings and errors
when building in 32-bit.

With this patch, mana will be able to build into 32-bit. However,
another pa

net/mana: enable 32-bit build

Enable 32-bit build on x86 Linux. Fixed build warnings and errors
when building in 32-bit.

With this patch, mana will be able to build into 32-bit. However,
another patch for mana short doorbell support is needed to make
mana fully functional for 32-bit applications.

Cc: stable@dpdk.org

Signed-off-by: Wei Hu <weh@microsoft.com>
Acked-by: Long Li <longli@microsoft.com>

show more ...


# e2d3a3c0 21-Feb-2023 Long Li <longli@microsoft.com>

net/mana: use datapath logging

Change all the logging statements on the datapath to use RTE_LOG_DP() to
reduce CPU overhead when logging is not enabled for datapath.

Fixes: 517ed6e2d590 ("net/mana:

net/mana: use datapath logging

Change all the logging statements on the datapath to use RTE_LOG_DP() to
reduce CPU overhead when logging is not enabled for datapath.

Fixes: 517ed6e2d590 ("net/mana: add basic driver with build environment")
Cc: stable@dpdk.org

Signed-off-by: Long Li <longli@microsoft.com>

show more ...


# 0f5db3c6 05-Oct-2022 Long Li <longli@microsoft.com>

net/mana: implement memory registration

MANA hardware has iommu built-in, that provides hardware safe access to
user memory through memory registration. Since memory registration is an
expensive ope

net/mana: implement memory registration

MANA hardware has iommu built-in, that provides hardware safe access to
user memory through memory registration. Since memory registration is an
expensive operation, this patch implements a two level memory registration
cache mechanisum for each queue and for each port.

Signed-off-by: Long Li <longli@microsoft.com>

show more ...