#
3d4e27fd |
| 25-Aug-2023 |
David Marchand <david.marchand@redhat.com> |
use abstracted bit count functions
Now that DPDK provides such bit count functions, make use of them.
This patch was prepared with a "brutal" commandline:
$ old=__builtin_clzll; new=rte_clz64; g
use abstracted bit count functions
Now that DPDK provides such bit count functions, make use of them.
This patch was prepared with a "brutal" commandline:
$ old=__builtin_clzll; new=rte_clz64; git grep -lw $old :^lib/eal/include/rte_bitops.h | xargs sed -i -e "s#\<$old\>#$new#g" $ old=__builtin_clz; new=rte_clz32; git grep -lw $old :^lib/eal/include/rte_bitops.h | xargs sed -i -e "s#\<$old\>#$new#g"
$ old=__builtin_ctzll; new=rte_ctz64; git grep -lw $old :^lib/eal/include/rte_bitops.h | xargs sed -i -e "s#\<$old\>#$new#g" $ old=__builtin_ctz; new=rte_ctz32; git grep -lw $old :^lib/eal/include/rte_bitops.h | xargs sed -i -e "s#\<$old\>#$new#g"
$ old=__builtin_popcountll; new=rte_popcount64; git grep -lw $old :^lib/eal/include/rte_bitops.h | xargs sed -i -e "s#\<$old\>#$new#g" $ old=__builtin_popcount; new=rte_popcount32; git grep -lw $old :^lib/eal/include/rte_bitops.h | xargs sed -i -e "s#\<$old\>#$new#g"
Then inclusion of rte_bitops.h was added were necessary.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Reviewed-by: Long Li <longli@microsoft.com>
show more ...
|
#
86ed522a |
| 11-Jan-2023 |
Alex Vesker <valex@nvidia.com> |
net/mlx5/hws: fix memory leak on general pool DB init
On elemend db init we allocated the element_manager which was unused and not freed.
Fixes: b4dd7bcb0dcbe ("net/mlx5/hws: add pool and buddy") C
net/mlx5/hws: fix memory leak on general pool DB init
On elemend db init we allocated the element_manager which was unused and not freed.
Fixes: b4dd7bcb0dcbe ("net/mlx5/hws: add pool and buddy") Cc: stable@dpdk.org
Signed-off-by: Alex Vesker <valex@nvidia.com> Reviewed-by: Erez Shitrit <erezsh@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com>
show more ...
|
#
742d8aaa |
| 09-Nov-2022 |
Stephen Hemminger <stephen@networkplumber.org> |
drivers/net: remove unnecessary null checks
The function rte_free() already handles NULL argument; therefore the checks in this code are unnecessary.
Signed-off-by: Stephen Hemminger <stephen@netwo
drivers/net: remove unnecessary null checks
The function rte_free() already handles NULL argument; therefore the checks in this code are unnecessary.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
#
b4dd7bcb |
| 20-Oct-2022 |
Erez Shitrit <erezsh@nvidia.com> |
net/mlx5/hws: add pool and buddy
HWS needs to manage different types of device memory in an efficient and quick way. For this, memory pools are being used.
Signed-off-by: Erez Shitrit <erezsh@nvidi
net/mlx5/hws: add pool and buddy
HWS needs to manage different types of device memory in an efficient and quick way. For this, memory pools are being used.
Signed-off-by: Erez Shitrit <erezsh@nvidia.com> Signed-off-by: Alex Vesker <valex@nvidia.com>
show more ...
|