]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the device unit number for naming the ifnet interface in mlx5en(4).
authorHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 8 Mar 2018 15:43:41 +0000 (15:43 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 8 Mar 2018 15:43:41 +0000 (15:43 +0000)
commit7c22ae80d2f2c6a514fc67e8cd076a4ece8810e1
treead21b8bda86edf4efa0b32f582bfb2ee6e55c775
parent1a872967ad5abbfedf16371810616d06ef8229c4
Use the device unit number for naming the ifnet interface in mlx5en(4).

Currently the ifnet interface is named mceX, where X is a monotonically
incremented value. If the device is reset due to a fatal error, then the
interface name will change.  Using the device unit number will keep the
naming consistent across the reset logic.

Submitted by: Matthew Finlay <matt@mellanox.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_en/mlx5_en_main.c