[PATCH v5 3/4] app/test: add tests to find devices
Stephen Hemminger
stephen at networkplumber.org
Thu Feb 6 02:03:23 CET 2025
On Thu, 6 Feb 2025 02:08:37 +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 mac_addr = {
> + .addr_bytes = {
> + 0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00
> + }
> + };
> +
> + char pmd_name[RTE_ETH_NAME_MAX_LEN];
Why hardcode a MAC address, which could lead to future issues.
Instead use rte_eth_random_addr().
More information about the dev
mailing list