Device name changed after update the driver to 5.8LTS

RHEL 8.4 + inbox driver:

3: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 62:4b:f3:42:9b:58 brd ff:ff:ff:ff:ff:ff
inet6 fe80::d009:170c:f8c5:f629/64 scope link noprefixroute
valid_lft forever preferred_lft forever

After installed 5.8LTS driver

3: enp7s0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether c2:43:34:18:a4:e7 brd ff:ff:ff:ff:ff:ff permaddr 72:6a:26:98:44:f8
inet6 fe80::82fb:daca:4ea0:e8ce/64 scope link noprefixroute
valid_lft forever preferred_lft forever

there is a suffix (np0) added to device name. anyone knows why?
What I have done is:

  1. check the udev rules file in /usr/lib/udev/rules.d/ and /etc/udev/rules.d/ , and delete the files which had been created after driver 5.8LTS installed, but the device name was still the same
  2. add new device to system(intel netcard) , its name has no suffix like np0 in the device.

so, the driver did influence the device name, and only influence the Nvidia’s netcard .

Hi lvzhipeng,

You will find the information in our documentation:
https://docs.nvidia.com/networking/display/MLNXOFEDv582030LTS/Ethernet+Interface#EthernetInterface-PersistentNamingPersistentNaming

This change was implemented since version 5.6:

https://docs.nvidia.com/networking/display/MLNXOFEDv561033/Changes+and+New+Features#ChangesandNewFeatures-CustomerAffectingChanges

Thank you and regards,

Nvidia Support