Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2023 15:39:35 -0700
From:      Kevin Bowling <kevin.bowling@kev009.com>
To:        Kristof Provost <kp@freebsd.org>
Cc:        Sumit Saxena <sumit.saxena@broadcom.com>, Warner Losh <imp@freebsd.org>,  dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org,  src-committers@freebsd.org
Subject:   Re: git: 91fcacc35597 - main - if_bnxt: Add support for VLAN on Thor
Message-ID:  <CAK7dMtCJhwpV96znB4if48FtWEy091ss-nmvMp5zoLUvtkAs%2BA@mail.gmail.com>
In-Reply-To: <05979953-C089-4D56-99E3-BBBF066FE277@FreeBSD.org>
References:  <202211042255.2A4MtqVv032693@gitrepo.freebsd.org> <419530F4-DB8F-46EA-BF45-C130BCF8A3DE@FreeBSD.org> <05979953-C089-4D56-99E3-BBBF066FE277@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000000d585606038aac0f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 22, 2023 at 2:07 PM Kristof Provost <kp@freebsd.org> wrote:

> On 27 Jun 2023, at 11:17, Kristof Provost wrote:
>
> On 4 Nov 2022, at 23:55, Warner Losh wrote:
>
> The branch main has been updated by imp:
>
> URL:
> https://cgit.FreeBSD.org/src/commit/?id=3D91fcacc355971f74aa26fc7861020dc=
3a2a2d717
>
> commit 91fcacc355971f74aa26fc7861020dc3a2a2d717
> Author: Sumit Saxena <sumit.saxena@broadcom.com>
> AuthorDate: 2022-11-04 22:24:32 +0000
> Commit: Warner Losh <imp@FreeBSD.org>
> CommitDate: 2022-11-04 22:24:32 +0000
>
> if_bnxt: Add support for VLAN on Thor
>
> Reviewed by: imp
> Differential Revision: https://reviews.freebsd.org/D36443
> ---
> sys/dev/bnxt/bnxt.h | 3 +-
> sys/dev/bnxt/bnxt_hwrm.c | 110
> ++++++++++++++++++++++++++++-------------------
> sys/dev/bnxt/bnxt_hwrm.h | 7 ++-
> sys/dev/bnxt/if_bnxt.c | 7 ++-
> 4 files changed, 74 insertions(+), 53 deletions(-)
>
> This commit appears to have broken vlan on these interfaces.
> My hardware is a Broadcom BCM57416 NetXtreme-E 10GBase-T Ethernet, (in a
> Dell T640, if that helps).
>
> A simple vlan creation on top of one:
> ifconfig vlan create
> ifconfig vlan0 vlan 201 vlandev bnxt0
>
> Results in a loss of connectivity. The kernel logs this, which I assume i=
s
> related:
>
> `bnxt0: HWRM_CFA_L2_FILTER_ALLOC command returned INVALID_PARAMS error.`
>
> After reverting this (and 72e9dbb58cad5262190cf2eae47f764021072128) I can
> create vlan interfaces on top of bnxt0 without losing connectivity.
>
> Should we revert this before 14.0?
>
> There=E2=80=99s also a report of what I think is the same issue in
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269133
>
> There=E2=80=99s a proposed patch there, but it did not work for me.
>

In markj=E2=80=99s analysis he mentions the issue of the reinit.

It sounds like there are multiple bugs in this driver but one quick band
aid may be to mark the driver as not needing re-init for VLAN
modifications.. that sounds unlikely and was probably an accident when the
if reset functionality was added.  You can check e1000 for that.

Note I don=E2=80=99t have this hw and haven=E2=80=99t audited the code so t=
his could be
noise but it=E2=80=99s an easy thing to check.

Best regards,
> Kristof
>

--0000000000000d585606038aac0f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><br></div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Tue, Aug 22, 2023 at 2:07 PM Kristof Provost &lt;<a href=
=3D"mailto:kp@freebsd.org">kp@freebsd.org</a>&gt; wrote:<br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-widt=
h:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,20=
4,204)"><u></u>




<div><div style=3D"font-family:sans-serif"></div></div><div><div style=3D"f=
ont-family:sans-serif"><div style=3D"white-space:normal;font-family:sans-se=
rif">
<p dir=3D"auto" style=3D"font-family:sans-serif">On 27 Jun 2023, at 11:17, =
Kristof Provost wrote:</p>
</div><div style=3D"white-space:normal;font-family:sans-serif"><blockquote =
style=3D"margin:0px 0px 5px;padding-left:5px;border-left-width:2px;border-l=
eft-style:solid;font-family:sans-serif;border-left-color:rgb(19,107,206);co=
lor:rgb(19,107,206)"><p dir=3D"auto" style=3D"font-family:sans-serif">On 4 =
Nov 2022, at 23:55, Warner Losh wrote:</p>
<blockquote style=3D"margin:0px 0px 5px;padding-left:5px;border-left-width:=
2px;border-left-style:solid;font-family:sans-serif;border-left-color:rgb(75=
,137,207);color:rgb(75,137,207)"><p dir=3D"auto" style=3D"font-family:sans-=
serif">The branch main has been updated by imp:</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">URL: <a href=3D"https://cg=
it.FreeBSD.org/src/commit/?id=3D91fcacc355971f74aa26fc7861020dc3a2a2d717" t=
arget=3D"_blank" style=3D"font-family:sans-serif">https://cgit.FreeBSD.org/=
src/commit/?id=3D91fcacc355971f74aa26fc7861020dc3a2a2d717</a></p>
<p dir=3D"auto" style=3D"font-family:sans-serif">commit 91fcacc355971f74aa2=
6fc7861020dc3a2a2d717
<br>
Author:     Sumit Saxena &lt;<a href=3D"mailto:sumit.saxena@broadcom.com" t=
arget=3D"_blank" style=3D"font-family:sans-serif">sumit.saxena@broadcom.com=
</a>&gt;
<br>
AuthorDate: 2022-11-04 22:24:32 +0000
<br>
Commit:     Warner Losh &lt;imp@FreeBSD.org&gt;
<br>
CommitDate: 2022-11-04 22:24:32 +0000</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">    if_bnxt: Add support f=
or VLAN on Thor</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">    Reviewed by: imp
<br>
    Differential Revision: <a href=3D"https://reviews.freebsd.org/D36443" t=
arget=3D"_blank" style=3D"font-family:sans-serif">https://reviews.freebsd.o=
rg/D36443</a>
<br>
---
<br>
 sys/dev/bnxt/bnxt.h      |   3 +-
<br>
 sys/dev/bnxt/bnxt_hwrm.c | 110 ++++++++++++++++++++++++++++---------------=
----
<br>
 sys/dev/bnxt/bnxt_hwrm.h |   7 ++-
<br>
 sys/dev/bnxt/if_bnxt.c   |   7 ++-
<br>
 4 files changed, 74 insertions(+), 53 deletions(-)</p>
</blockquote><p dir=3D"auto" style=3D"font-family:sans-serif">This commit a=
ppears to have broken vlan on these interfaces.
<br>
My hardware is a Broadcom BCM57416 NetXtreme-E 10GBase-T Ethernet, (in a De=
ll T640, if that helps).</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">A simple vlan creation on =
top of one:
<br>
ifconfig vlan create
<br>
ifconfig vlan0 vlan 201 vlandev bnxt0</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">Results in a loss of conne=
ctivity. The kernel logs this, which I assume is related:</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">`bnxt0: HWRM_CFA_L2_FILTER=
_ALLOC command returned INVALID_PARAMS error.`</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">After reverting this (and =
72e9dbb58cad5262190cf2eae47f764021072128) I can create vlan interfaces on t=
op of bnxt0 without losing connectivity.</p>
<br></blockquote></div>
</div></div><div><div style=3D"font-family:sans-serif"><div style=3D"white-=
space:normal;font-family:sans-serif">
<p dir=3D"auto" style=3D"font-family:sans-serif">Should we revert this befo=
re 14.0?</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">There=E2=80=99s also a rep=
ort of what I think is the same issue in <a href=3D"https://bugs.freebsd.or=
g/bugzilla/show_bug.cgi?id=3D269133" target=3D"_blank" style=3D"font-family=
:sans-serif">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269133</a>=
</p>
<p dir=3D"auto" style=3D"font-family:sans-serif">There=E2=80=99s a proposed=
 patch there, but it did not work for me.</p></div></div></div></blockquote=
><div dir=3D"auto"><br></div><div dir=3D"auto">In markj=E2=80=99s analysis =
he mentions the issue of the reinit.</div><div dir=3D"auto"><br></div><div =
dir=3D"auto">It sounds like there are multiple bugs in this driver but one =
quick band aid may be to mark the driver as not needing re-init for VLAN mo=
difications.. that sounds unlikely and was probably an accident when the if=
 reset functionality was added.=C2=A0 You can check e1000 for that.</div><d=
iv dir=3D"auto"><br></div><div dir=3D"auto">Note I don=E2=80=99t have this =
hw and haven=E2=80=99t audited the code so this could be noise but it=E2=80=
=99s an easy thing to check.</div><div dir=3D"auto"><br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1p=
x;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,20=
4)"><div><div style=3D"font-family:sans-serif"><div style=3D"white-space:no=
rmal;font-family:sans-serif"><p dir=3D"auto" style=3D"font-family:sans-seri=
f"></p>
<p dir=3D"auto" style=3D"font-family:sans-serif">Best regards,<br>
Kristof</p>

</div>
</div>
</div>


</blockquote></div></div>

--0000000000000d585606038aac0f--



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