Skip site navigation (1)Skip section navigation (2)
From:      Santiago Martinez <sm@codenetworks.net>
To:        =?UTF-8?Q?Gerrit_K=C3=BChn?= <gerrit.kuehn@aei.mpg.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [Bug 269133] bnxt(4): BCM57416 - HWRM_CFA_L2_SET_RX_MASK command returned RESOURCE_ALLOC_ERROR error
In-Reply-To: <20240528113008.39964887@arc.aei.uni-hannover.de>
References:  <bug-269133-38239@https.bugs.freebsd.org/bugzilla/> <bug-269133-38239-ga6S4Xslmx@https.bugs.freebsd.org/bugzilla/> <944a89c4-618d-4a3e-b253-6b56df3e4f3c@codenetworks.net> <CANCZdfq_u4v_sApZFR1PVX-kxvjRwN2JCKtRMP4xfMmvmfNu7A@mail.gmail.com> <0100018fbbdb5718-3ed4929d-183a-4080-b176-b1edce263fc2-000000@email.amazonses.com> <CANCZdfrh8iCCFCbpfn6i_vEFOV%2BkKBGVDdy3zzpY3pd7GPJxSA@mail.gmail.com> <20240528084018.24cb5b5e@arc.aei.uni-hannover.de> <51be0cbf-20ae-48ff-aa37-befbf6f05d76@codenetworks.net> <20240528111942.6a649174@arc.aei.uni-hannover.de> <137a57c8-ca86-493c-bbc0-f357f8bff5cd@codenetworks.net> <20240528113008.39964887@arc.aei.uni-hannover.de>

| previous in thread | raw e-mail | index | archive | help
Hi everyone, just to follow up.

I have found something interesting, at the moment I'm focusing on the 
issue related to the creation and deletion of sub-interfaces that 
trigger ALLOC/MASK errors and bricks the NIC ( not completely as the 
other port keeps working, this card has 2x10G).

I have found the following:

- If a port is down (let's say bnxt1) and sub-interfaces are created ( 
bnxt1.1100) then the port is activated (ifconfig bnxt1 up). this will 
trigger the issues of the filters and the card will not be able to be  
"programmed" again until the next reboot (not sure if there is any way 
to reset it, the devctl reset did not work).

echo "Creating Interfaces and brick the card"

ifconfig bnxt1.1011 create up fib 10 192.168.11.43/24
ifconfig bnxt1.1001 create up fib 11 192.168.12.43/24
ifconfig bnxt1.1002 create up fib 12 192.168.13.43/24
ifconfig bnxt1.1003 create up fib 13 192.168.14.43/24
ifconfig bnxt1.1004 create up fib 14 192.168.15.43/24
ifconfig bnxt1.1005 create up fib 15 192.168.16.43/24
ifconfig bnxt1 up --- ( at this point is bricked) ---

--- then destroy and shutdown bnxt1 ---

- If I do the same, but just make sure that the port is "admin up" 
before creating and deleting the sub-interfaces, everything works like 
charm. No errors are seen.

echo "Creating Interfaces and bricks the card"
ifconfig bnxt1 up
ifconfig bnxt1.1011 create up fib 10 192.168.11.43/24
ifconfig bnxt1.1001 create up fib 11 192.168.12.43/24
ifconfig bnxt1.1002 create up fib 12 192.168.13.43/24
ifconfig bnxt1.1003 create up fib 13 192.168.14.43/24
ifconfig bnxt1.1004 create up fib 14 192.168.15.43/24
ifconfig bnxt1.1005 create up fib 15 192.168.16.43/24
--- then destroy and shutdown bnxt1 ---

This is tested against main from yesterday.

Best regards.

Santi


On 5/28/24 11:30, Gerrit Kühn wrote:
> Am Tue, 28 May 2024 11:25:09 +0200
> schrieb Santiago Martinez <sm@codenetworks.net>:
>
>> *"The latest I have is 214.0.286.18"*
>> Indeed, the firmware on my box is older, I cannot upgrade it right now,
>> but it is on my to-do list.
> Same here, I guess (pkgver). It says
> dev.bnxt.0.ver.fw_ver: 214.4.9.10/pkg 214.0.286.18
> on both systems.
>
> Also, I don't think I can upgrade the firmware separately, it comes with
> the mainboard's bios (which is the latest available).
>
>
> cu
>    Gerrit



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>