[PATCH v5 2/8] net/nfb: create one ethdev per ethernet port
Stephen Hemminger
stephen at networkplumber.org
Tue Jan 27 01:37:10 CET 2026
On Fri, 23 Jan 2026 18:22:18 +0100
spinler at cesnet.cz wrote:
> +struct nfb_ifc_create_params {
> + struct nfb_probe_params *probe_params;
> + struct nc_ifc_map_info map_info;
> + struct nc_ifc_info *ifc_info;
> +
> + int basename_len; /* Cached real length of original probe_params->name */
> +};
> +
> +/* The TAILQ entries are used for cleanup of allocated resources
> + * in situations, where dev_close is not called.
> + */
> +TAILQ_HEAD(nfb_pmd_internals_head, pmd_internals);
You should put static in front of TAILQ_HEAD so that the head is not
global if you don't need it to be.
> +static struct nfb_pmd_internals_head nfb_eth_dev_list =
> + TAILQ_HEAD_INITIALIZER(nfb_eth_dev_list);
> +
More information about the dev
mailing list