[PATCH v7 3/4] app/test: add tests to find devices
Stephen Hemminger
stephen at networkplumber.org
Wed Feb 19 17:47:28 CET 2025
On Wed, 12 Feb 2025 18:38:34 +0200
Shani Peretz <shperetz at nvidia.com> wrote:
> +static struct rte_device *
> +create_pci_dev(const char *name)
> +{
> + int port_id;
> + struct rte_ether_addr rand_ea = {0};
> + rte_eth_random_addr(rand_ea.addr_bytes);
Minor nit, no need to initialize address then call random.
Random always writes the value.
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list