On Thu May 8, 2025 at 6:32 AM CDT, Anatoly Burakov wrote:
> On 5/6/2025 7:40 PM, Jake Freeland wrote:
> > When mapping PCI resources in secondary processes, use the
> > RTE_MAP_FORCE_ADDRESS_NOREPLACE flag to indicate that the
> > mapping must be made at the provided address.
nable behavior to me and is better than having no
initial r/w check at all.
Thanks,
Jake Freeland
>
> On Wed, May 7, 2025, 02:50 Jake Freeland wrote:
>
> > Currently, hugepage mountpoints will be used irrespective of permissions,
> > leading to potential EACCES errors during
.
Signed-off-by: Jake Freeland
---
drivers/net/intel/ice/ice_ethdev.c | 13 -
drivers/net/intel/ice/ice_rxtx.c | 27 +--
drivers/net/intel/ice/ice_rxtx.h | 6 ++
3 files changed, 15 insertions(+), 31 deletions(-)
diff --git a/drivers/net/intel/ice
Currently, hugepage mountpoints will be used irrespective of permissions,
leading to potential EACCES errors during memory allocation. Fix this by
not using a mountpoint if we do not have read/write permissions on it.
Signed-off-by: Jake Freeland
---
lib/eal/linux/eal_hugepage_info.c | 6
t to
safeguard against this, but we are not updating arr->count when inserting
holes, so an undesired index may be returned.
Signed-off-by: Jake Freeland
---
lib/eal/freebsd/eal_memory.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/eal/freebsd/eal_memory.c b/lib/eal/freebsd/e
Hi there,
This patchset contains a number of EAL-specific memory fixes that I've
made over the last year. Two pertain to FreeBSD, one pertains to Linux.
Let me know if you have any feedback. Thanks.
Jake Freeland (3):
eal/freebsd: Do not use prev_ms_idx for hole detection
eal/freebs
another non-empty memseg list can lead to incorrect hole placement.
Signed-off-by: Jake Freeland
---
lib/eal/freebsd/eal_memory.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/eal/freebsd/eal_memory.c b/lib/eal/freebsd/eal_memory.c
index 3b72e13506..bcf5a6f986 100644
unset, memory will be interleaved across
all NUMA domains on the system.
Signed-off-by: Jake Freeland
---
kernel/freebsd/contigmem/contigmem.c | 66 +++-
1 file changed, 64 insertions(+), 2 deletions(-)
diff --git a/kernel/freebsd/contigmem/contigmem.c
b/kernel/freebsd
access(2). i.e. access(2) does not formally support the O_RDWR
flag.
Signed-off-by: Jake Freeland
---
drivers/bus/pci/bsd/pci.c | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/drivers/bus/pci/bsd/pci.c b/drivers/bus/pci/bsd/pci.c
index c64cd2c86c
When calling rte_pci_write_config(), use memcpy(3) to copy @len bytes
of @buf into local memory instead of casting it to a uint32_t pointer
and dereferencing it. This prevents us from reading data outside of
@buf in the case that @buf has a length less than 32 bits.
Signed-off-by: Jake Freeland
Provide the EAL base address as a hint to mmap(2), so device resources
are not mapped where malloc(3) et al. make allocations.
This makes mapping conflicts less likely for secondary processes that
make memory allocations before initializing EAL.
Signed-off-by: Jake Freeland
---
drivers/bus/pci
-off-by: Jake Freeland
---
drivers/bus/pci/pci_common_uio.c | 4 +++-
lib/eal/common/eal_private.h | 7 ++-
lib/eal/include/rte_eal_paging.h | 7 ++-
lib/eal/unix/eal_unix_memory.c | 8 +++-
4 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/drivers/bus/pci
Hi there,
The following patchset includes a number of fixes I've made over the
past year relating to the PCI driver. Most of these changes target
the FreeBSD platform.
Let me know if you have any feedback. Thanks.
Jake Freeland (4):
bus/pci: Use force-noreplace flag when mapping PCI reso
13 matches
Mail list logo