From nobody Tue Jun 4 10:49:42 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VtnRJ34dfz5NBVh for ; Tue, 04 Jun 2024 10:49:48 +0000 (UTC) (envelope-from sm@codenetworks.net) Received: from relayout08-q01.dominioabsoluto.net (relayout08-q01.dominioabsoluto.net [217.116.26.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VtnRG58XFz4HdM for ; Tue, 4 Jun 2024 10:49:46 +0000 (UTC) (envelope-from sm@codenetworks.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=codenetworks.net header.s=domabs header.b=Hc3PawIm; dmarc=none; spf=pass (mx1.freebsd.org: domain of sm@codenetworks.net designates 217.116.26.111 as permitted sender) smtp.mailfrom=sm@codenetworks.net Received: from relayout08-redir.dominioabsoluto.net (relayout08-redir.dominioabsoluto.net [217.116.26.119]) by relayout08.dominioabsoluto.net (Postfix) with ESMTP id 4VtnRB4mnpzr560; Tue, 4 Jun 2024 12:49:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codenetworks.net; s=domabs; t=1717498182; bh=srmU/wfDRCjTmTWtQ+0kWHil/si+8egFxvkN/+XZhdE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Hc3PawImDdxwxGexDZ9a1nEyz7OMxczB1ZgOZWI8mckx1SqKZOqtdzwApKJIK6gJX jNlsezuUokPzNT8/z92V0sPQfk/VtQu1hlfg6fBmGQOubchaKo8h0SOh5N06Yrwv9u Z/N5D3u/DHA/YbubwVRo8JWls/u10hImKNYJAe/U= Received: from [192.168.3.20] (unknown [188.241.98.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sm.codenetworks.net) by relayout08-dsp.dominioabsoluto.net (Postfix) with ESMTPSA id 4VtnRB2lkczr56q; Tue, 4 Jun 2024 12:49:42 +0200 (CEST) Message-ID: Date: Tue, 4 Jun 2024 12:49:42 +0200 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Bug 269133] bnxt(4): BCM57416 - HWRM_CFA_L2_SET_RX_MASK command returned RESOURCE_ALLOC_ERROR error To: =?UTF-8?Q?Gerrit_K=C3=BChn?= Cc: freebsd-current@freebsd.org References: <944a89c4-618d-4a3e-b253-6b56df3e4f3c@codenetworks.net> <0100018fbbdb5718-3ed4929d-183a-4080-b176-b1edce263fc2-000000@email.amazonses.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> Content-Language: en-US From: Santiago Martinez Autocrypt: addr=sm@codenetworks.net; keydata= xsDNBGGx1zYBDAC4jWCD3yN13RQY9C5bsWzwubAkl8zD/t2GOtXZs2oLzmiOVinsTP5HEqko E+BdeprhF4nrWLm/lVOttQpyNWs94U01d4BAg3gMy9MQhZ1JdkhJNYc3CiE/aYytl4ZIF9ju AfSwKr/govkPMtsvipvEBcV8vuCy3EO3c4FsMWrvYRDSI1Gr+7gjAILgzp13Xv1o03aBbL8o XWL3SJPuAchbfeyfeIgOd8LoW8qMfXctXxJb9zfzAzDpUm7ZmQS/YhJ8az5ep3nv0U8M2vza dR18cf12umt8jurdNXFz0Sgs+kmqY6/d/OZzEbTUdH3tZP+n5nVlTGspSUyz/yY39vVKMWfi K1UPAU6qhYQB0AotI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CZMl2uowiFLfZXdBpDD6Zj+sTWPfHqiFh5rhnE57XjonYVhTGxJsFY+pJn7XMT2g344q G3d48grAg2YILG5TfmtVaEKAkNsyJWuLju7KdBiEzMWiSRpkhX4MJjLPUkGUqMZ/cQN/ae8m lTOy5Jd9OhY94uCuDQcIhsOraExmQcek5MlvT9y+2KDKMk/gGL52FkmdlpDlGJJkX8snYqHn 2q27prK+LlMzKlBwvhsfgQINgcqAnKpeNC3o3tQuMRS8CN9bp5/8KbZTr9FGCNqTb3eDuu0r vUP7Y6JNABEBAAHCwPwEGAEIACYWIQTBAKqD73fsf9XobzQWLKzULOIMSQUCYbHXNwUJBaOa gAIbDAAKCRAWLKzULOIMSfpqC/9edCYRJtJrW4tIa31BRp/XxZoVD8q3IFHB8MQ+OS6yOnCO qoi9a2xxuFTEsRiyzdl3/D6YIf7QKVG5izhtFH7q+cLuzusgFhWZDADMcfojmVD7Z/nDPkgy Filc1FSiJf7aCD3iV2dQtV1r8J4Aseso67ge35qcL1QGCKcPubEw3vUM+YE1lhZe2U0PeAfK zIPqYGN1nHtxh4dFmKuHJpNAGHkWCo2RNdkkYR/2qIpOyeSFrRYE2dogYUGLz0Wv2bdm3LCb XbBsFbnpeaTTZ6SNYxyzjoDyRjPtinijbaeXIekJt4lUFZnezGusxMGBSZV+5Ms47aQpzSLp fZVWlMbB2/5mJTUJhJNYAwm2wWPyVcMcuFEriqEXal/xPq5bdK25s7mfHrx4ienGySHUROpX kVxSMw0XUdlEoqpOqCuyrfYNsSUf8ck8ssLeWKpkRKy76oMN76VidVLleT404o8BRSPuuJT5 Gu7Qzc+/hiQrZnxuQ9FhKgfg2W9b7kFM7R0= In-Reply-To: <20240528113008.39964887@arc.aei.uni-hannover.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-PostalOut-Country: IP: 188.241.98.123 | Country: ES X-PostalOut-Information: AntiSPAM and AntiVIRUS on relayout08 X-PostalOut-MsgID: 4VtnRB2lkczr56q.AC7E1 X-PostalOut-SpamCheck: no es spam, clean X-PostalOut-From: sm@codenetworks.net X-PostalOut-Watermark: 1718102982.51312@H8EtxYey1ptCMO2tMKJwWw X-Spam-Status: No X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.89 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; RWL_MAILSPIKE_VERYGOOD(-0.20)[217.116.26.111:from]; RCVD_IN_DNSWL_LOW(-0.20)[217.116.26.111:from,217.116.26.119:received]; R_SPF_ALLOW(-0.20)[+ip4:217.116.26.0/24]; R_DKIM_ALLOW(-0.20)[codenetworks.net:s=domabs]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; ASN(0.00)[asn:16371, ipnet:217.116.24.0/21, country:ES]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[codenetworks.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[codenetworks.net:+] X-Rspamd-Queue-Id: 4VtnRG58XFz4HdM 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 : > >> *"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