On Wed, 12 Feb 2025 18:38:34 +0200
Shani Peretz wrote:
> @@ -317,6 +431,12 @@ test_devargs(void)
> printf("== test devargs parsing invalid case ==\n");
> if (test_invalid_devargs_parsing() < 0)
> return -1;
> + printf("== test find device valid case ==\n");
> + i
On Wed, 12 Feb 2025 18:38:34 +0200
Shani Peretz 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 rand
Added tests to PCI and vdev bus that compare and find devices
in various forms of names under test_devargs.
The tests check the functionality of the rte_cmp_dev_name function by
calling it with different variations of names, like short and full,
full and full, etc.
Signed-off-by: Shani Peretz
---
3 matches
Mail list logo