#
8e08df22 |
| 30-Jan-2020 |
Alexander Kozyrev <akozyrev@mellanox.com> |
net/mlx4: improve assert control
Use the MLX4_ASSERT macros instead of the standard assert clause. Depends on the RTE_LIBRTE_MLX4_DEBUG configuration option to define it. If RTE_LIBRTE_MLX4_DEBUG is
net/mlx4: improve assert control
Use the MLX4_ASSERT macros instead of the standard assert clause. Depends on the RTE_LIBRTE_MLX4_DEBUG configuration option to define it. If RTE_LIBRTE_MLX4_DEBUG is enabled MLX4_ASSERT is equal to RTE_VERIFY to bypass the global CONFIG_RTE_ENABLE_ASSERT option. If RTE_LIBRTE_MLX4_DEBUG is disabled, the global CONFIG_RTE_ENABLE_ASSERT can still make this assert active by calling RTE_VERIFY inside RTE_ASSERT.
Signed-off-by: Alexander Kozyrev <akozyrev@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
show more ...
|
#
5feecc57 |
| 20-Mar-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
align SPDX Mellanox copyrights
Aligning Mellanox SPDX copyrights to a single format. In addition replace to SPDX licence files which were missed.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
align SPDX Mellanox copyrights
Aligning Mellanox SPDX copyrights to a single format. In addition replace to SPDX licence files which were missed.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
show more ...
|
#
82092c87 |
| 29-Jan-2018 |
Olivier Matz <olivier.matz@6wind.com> |
net/mlx4: use SPDX tags in 6WIND copyrighted files
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas@monj
net/mlx4: use SPDX tags in 6WIND copyrighted files
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
f1c9ac9f |
| 12-Oct-2017 |
Adrien Mazarguil <adrien.mazarguil@6wind.com> |
net/mlx4: add iovec-like allocation wrappers
These wrappers implement the ability to allocate room for several disparate objects as a single contiguous allocation while complying with their respecti
net/mlx4: add iovec-like allocation wrappers
These wrappers implement the ability to allocate room for several disparate objects as a single contiguous allocation while complying with their respective alignment constraints.
This is usually more efficient than allocating and freeing them individually if they are not expected to be reallocated with rte_realloc().
A typical use case is when several objects that cannot be dissociated must be allocated together, as shown in the following example:
struct b { ... struct d *d; }
struct a { ... struct b *b; struct c *c; }
struct mlx4_malloc_vec vec[] = { { .size = sizeof(struct a), .addr = &ptr_a, }, { .size = sizeof(struct b), .addr = &ptr_b, }, { .size = sizeof(struct c), .addr = &ptr_c, }, { .size = sizeof(struct d), .addr = &ptr_d, }, };
if (!mlx4_mallocv(NULL, vec, RTE_DIM(vec))) goto error;
struct a *a = ptr_a;
a->b = ptr_b; a->c = ptr_c; a->b->d = ptr_d; ... rte_free(a);
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
35d02c54 |
| 01-Sep-2017 |
Adrien Mazarguil <adrien.mazarguil@6wind.com> |
net/mlx4: refactor interrupt FD settings
File descriptors used for interrupts processing must be made non-blocking.
Doing so as soon as they are opened instead of waiting until they are needed is m
net/mlx4: refactor interrupt FD settings
File descriptors used for interrupts processing must be made non-blocking.
Doing so as soon as they are opened instead of waiting until they are needed is more efficient as it avoids performing redundant system calls and run through their associated error-handling code later on.
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
show more ...
|