I have an LTE module in my Debian router for failover in case my fiber
goes down. It has this occasional issue that mostly its interface is
wwan0 but sometimes it's wwx0a697e2d934f.

When that happens I have something like this in my syslog:

  Sep  1 08:34:40 animus kernel: [    8.150781] qmi_wwan 2-1.3:1.5 
wwx0a697e2d934f: renamed from wwan0

So did the kernel really go and rename my interface? Why does this
happen only occasionally? Some race condition? And how can I put a stop
to it? Should I use a .link file to make sure? I guess I could put
something like this in a link file:

    [Match]
    Path=pci-0000:00:13.0-usb-0:1.3:1.5

    [Link]
    Name=wwan0

The Path parameter is from udevadm output. I think that path should be
stable if I don't feel the need to move the LTE module to a different
miniPCI slot and that's fairly unlikely.

I can query the interface name from the device and pass it around but
that seems like the wrong thing to do and there are three things that
need to know the interface.

Reply via email to