[RFC] net/virtio: avoid global variable name conflicts

Maxime Coquelin maxime.coquelin at redhat.com
Thu Jan 15 15:36:48 CET 2026


On Mon, Dec 22, 2025 at 1:45 AM Stephen Hemminger
<stephen at networkplumber.org> wrote:
>
> If PMD is statically linked, all global variables are visible and
> can clash with application or other drivers and therefore should
> have a consistent prefix.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
>  drivers/net/virtio/virtio_pci.c                   |  8 ++++----
>  drivers/net/virtio/virtio_pci.h                   |  4 ++--
>  drivers/net/virtio/virtio_pci_ethdev.c            |  4 ++--
>  drivers/net/virtio/virtio_user/vhost_kernel.c     | 14 +++++++-------
>  drivers/net/virtio/virtio_user/vhost_kernel_tap.c | 10 +++++-----
>  drivers/net/virtio/virtio_user/vhost_kernel_tap.h | 10 +++++-----
>  6 files changed, 25 insertions(+), 25 deletions(-)
>

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list