drivers/net: fix memzone allocations for DMA memory
authorDavid Marchand <david.marchand@redhat.com>
Tue, 6 Jul 2021 08:57:50 +0000 (10:57 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 7 Jul 2021 12:30:30 +0000 (14:30 +0200)
commitd07fc02fb4b38c0dded75d2d21b976d68b494f0e
tree15fe4a53224693e0a4686ee889305d8bed12aa96
parent83fa214051d6652a05098bb7ba4d695bf4ecd5dd
drivers/net: fix memzone allocations for DMA memory

Caught by code review.

Using a random name for memzone allocations can result in init failures
in the unlikely case that a name collision occurs.
Use a simple sequential generator on 64 bits.

Fixes: 3f50f072ff06 ("i40e: fix memzone freeing")
Fixes: 22b123a36d07 ("net/avf: initialize PMD")
Fixes: 5f0978e96220 ("net/ice/base: add OS specific implementation")
Fixes: 737f30e1c3ab ("net/hns3: support command interface with firmware")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/common/iavf/iavf_impl.c
drivers/net/hns3/hns3_cmd.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/ice/base/ice_osdep.h