Re: No networking due to "net/mlx5e: Add support for devlink-port in non-representors mode"

From: Qian Cai
Date: Wed Mar 25 2020 - 16:25:22 EST




> On Mar 25, 2020, at 3:33 PM, Moshe Shemesh <moshe@xxxxxxxxxxxx> wrote:
>
>
> On 3/25/2020 6:01 AM, Qian Cai wrote:
>> Reverted the linux-next commit c6acd629ee (ânet/mlx5e: Add support for devlink-port in non-representors modeâ)
>> and its dependencies,
>>
>> 162add8cbae4 (ânet/mlx5e: Use devlink virtual flavour for VF devlink portâ)
>> 31e87b39ba9d (ânet/mlx5e: Fix devlink port register sequenceâ)
>>
>> on the top of next-20200324 allowed NICs to obtain an IPv4 address from DHCP again.
>
>
> These patches should not interfere DHCP.
>
> You might have dependencies on interface name which was changed by this patch, please check.


Yes,

Before,
[ 238.225149][ T2021] mlx5_core 0000:0b:00.1 enp11s0f1: renamed from eth1
[ 238.511324][ T2035] mlx5_core 0000:0b:00.0 enp11s0f0: renamed from eth0

Now,
[ 234.448420][ T2013] mlx5_core 0000:0b:00.1 enp11s0f1np1: renamed from eth1
[ 234.664236][ T2042] mlx5_core 0000:0b:00.0 enp11s0f0np0: renamed from eth0

>
>> 0b:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
>> 0b:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
>>
>> [ 223.280777][ T13] mlx5_core 0000:0b:00.0: firmware version: 14.21.1000
>> [ 223.287753][ T13] mlx5_core 0000:0b:00.0: 63.008 Gb/s available PCIe bandwidth (8.0 GT/s PCIe x8 link)
>> [ 226.292153][ C0] mlx5_core 0000:0b:00.0: Port module event: module 0, Cable plugged
>> [ 226.874100][ T2023] mlx5_core 0000:0b:00.1: Adding to iommu group 2
>> [ 227.343553][ T13] mlx5_core 0000:0b:00.1: firmware version: 14.21.1000
>> [ 227.350467][ T13] mlx5_core 0000:0b:00.1: 63.008 Gb/s available PCIe bandwidth (8.0 GT/s PCIe x8 link)
>> [ 230.026346][ C0] mlx5_core 0000:0b:00.1: Port module event: module 1, Cable unplugged
>> [ 230.522660][ T2023] mlx5_core 0000:0b:00.0: MLX5E: StrdRq(0) RqSz(1024) StrdSz(256) RxCqeCmprss(0)
>> [ 231.448493][ T2023] mlx5_core 0000:0b:00.1: MLX5E: StrdRq(0) RqSz(1024) StrdSz(256) RxCqeCmprss(0)
>> [ 232.436993][ T2007] mlx5_core 0000:0b:00.1 enp11s0f1np1: renamed from eth1
>> [ 232.690895][ T2013] mlx5_core 0000:0b:00.0 enp11s0f0np0: renamed from eth0