net: mana: Record port number in netdev
authorLong Li <longli@microsoft.com>
Thu, 3 Nov 2022 19:16:24 +0000 (12:16 -0700)
committerLeon Romanovsky <leonro@nvidia.com>
Thu, 10 Nov 2022 05:57:26 +0000 (07:57 +0200)
commitd44089e555ffe63a49cc6e94d0c03d933e413059
treee5121f520d782eb55f4083dba240e8dd1d6fd2ef
parent4c0ff7a106e16ab63e0b597557255c012f179578
net: mana: Record port number in netdev

The port number is useful for user-mode application to identify this
net device based on port index. Set to the correct value in ndev.

Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Long Li <longli@microsoft.com>
Link: https://lore.kernel.org/r/1667502990-2559-7-git-send-email-longli@linuxonhyperv.com
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/net/ethernet/microsoft/mana/mana_en.c