Re: [PATCH v2 11/11] net/tap: track device by ifindex instead of name

Stephen Hemminger
2026-02-17T01:29:00Z

On Mon, 16 Feb 2026 15:02:35 -0800
Stephen Hemminger <stephen@networkplumber.org> wrote:

> Remove name and remote_iface strings from pmd_internals.
> The interface name can change at any time due to udev or admin
> action, making cached names unreliable.
>
> Resolve ifindex once at creation via TUNGETIFF on the keep-alive
> fd. For per-queue opens, recover the name on demand with
> if_indextoname(). In tap_netns_change(), use TUNGETIFF to get
> the current kernel name before resolving the new ifindex,
> fixing a bug where a rename during namespace move would lose
> the device.
>
> Log messages now use dev->device->name (DPDK vdev name) or
> the ifindex, following the pattern established by the rtap PMD.
>
> Bugzilla ID: 1880
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---

This patch is not ready and needs to be dropped