93f4ece91a
This commit implements mlx5_dev_spawn() API which allocates an eth device (struct rte_eth_dev) for each PCI device. When working with representors virtual functions (as in Linux), one PCI device may spawn several eth devices: the master device for the main physical function (PF) and several representors for the virtual functions (VFs). However, currently Windows does not work in switch dev mode, therefore, no VFs are created and no representors are spawned. In this case one eth device is created per one PCI main port. In addition to device creation - the device configuration must be correctly set. The device arguments (devargs - set by the user) are parsed but they may be overridden by Windows limitations or hardware configurations. Some associated network parameters are stored in eth device (e.g. ifindex, MAC address, MTU) and some callback (e.g. burst functions) are set. Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Signed-off-by: Tal Shnaiderman <talshn@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com> |
||
---|---|---|
.. | ||
linux | ||
windows | ||
meson.build | ||
mlx5_common_mp.c | ||
mlx5_common_mp.h | ||
mlx5_common_mr.c | ||
mlx5_common_mr.h | ||
mlx5_common_pci.c | ||
mlx5_common_pci.h | ||
mlx5_common_utils.h | ||
mlx5_common.c | ||
mlx5_common.h | ||
mlx5_devx_cmds.c | ||
mlx5_devx_cmds.h | ||
mlx5_malloc.c | ||
mlx5_malloc.h | ||
mlx5_prm.h | ||
rte_common_mlx5_exports.def | ||
version.map |