OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 23.7 Legacy Series »
  • Broadcom P225P driver - vlans no longer work
« previous next »
  • Print
Pages: [1] 2

Author Topic: Broadcom P225P driver - vlans no longer work  (Read 3091 times)

a.rueter

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Broadcom P225P driver - vlans no longer work
« on: August 01, 2023, 12:43:01 pm »
Hi,

I installed the update from 23.1.11_1 to 23.7 on one of our firewalls yesterday and had problems with the broadcom P225P network card driver.

The problem only occurs when vlans are assigned, normal operation without vlans is no problem.
Result:
Code: [Select]
bnxt0: HWRM_CFA_L2_FILTER_ALLOC command returned INVALID_Params error

In the meantime I have the firewall running again on 23.1.11_1.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 16290
  • Karma: 1437
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #1 on: August 01, 2023, 12:57:21 pm »
Oh boy, there have been a number of changes in bnxt(4) from FreeBSD 13.1 to 13.2 and it's relatively clear that something was broken as per your report.

This may be one of these https://reviews.freebsd.org/D36443 but I don't see an easy way of reverting. There is probably an oversight somewhere in the refactor(s).

Best report this to https://bugs.freebsd.org/ directly.


Cheers,
Franco
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 5415
  • Karma: 440
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #2 on: August 01, 2023, 01:52:54 pm »
As a hack can you try enabling promiscuous mode on the Broadcom parent interface?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

a.rueter

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #3 on: August 01, 2023, 02:30:34 pm »
Quote from: Patrick M. Hausen on August 01, 2023, 01:52:54 pm
As a hack can you try enabling promiscuous mode on the Broadcom parent interface?

Unfortunately, that didn't work either. The bad thing is that I can't get to any interface apart from the broadcom network card either, as this somehow blocks everything.

Here is also a screenshot of the boot process where you can see these errors as an attachment.

Quote from: franco on August 01, 2023, 12:57:21 pm
Best report this to https://bugs.freebsd.org/ directly.
I have created a bug report:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272865
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 16290
  • Karma: 1437
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #4 on: August 01, 2023, 02:37:58 pm »
Thanks, subscribed.

I can provide a test kernel as soon as a patch is proposed.


Cheers,
Franco
Logged

SeMe1991

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #5 on: August 15, 2023, 10:23:21 pm »
Hello everyone, I just registered for this thread. I have the exact same problem. I was in our data center last night to exchange our old Opnsense (Mellanox Connect X3) for a new one with a total of 6 Broadcom cards 25Gbit (bnxt). I deliberately waited for V23.07 because FreeBSD 13.2 contains the latest drivers. All interfaces without a VLAN work as expected. However, our WAN uplink to the core routers must be transferred with VLAN. We found on the core routers that no packets are sent out at all via the Broadcom card with VLAN.

Just for Info:
The next problem is the FRR plugin (tested with BGP). It seems like the permissions of the directories and config-files are not set during installation. But you can change the permissions manually.

Cheers  :)
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 5415
  • Karma: 440
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #6 on: August 15, 2023, 10:34:48 pm »
We were hit by what is probably related, although our adapters are all BCM57416 10G.

The related pr seems to be:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269133

I already contacted Chandrakanth but did not hear back, yet.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

SeMe1991

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #7 on: August 15, 2023, 10:51:14 pm »
To be exact:

My cards are 1x PCIe Quadport BCM57504 and 1x OCP3.0 Dualport BCM57412 (HP labeled)
Logged

Thomas Niedermeier

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
  • Thomas-Krenn
    • View Profile
    • Thomas-Krenn
Re: Broadcom P225P driver - vlans no longer work
« Reply #8 on: August 23, 2023, 11:07:16 am »
Hello everyone,

we internally tested also all of our Broadcom cards and the issue affects not all NICs.
Only the cards with the BCM574xx chip are affected from this, we also wrote a Wiki article about that issue: https://www.thomas-krenn.com/en/wiki/Broadcom_BCM574xx_VLAN_problem_under_FreeBSD_13.2_with_bnxt_driver
We are also in contact with Broadcom and Kevin Bowling already made a patch: https://reviews.freebsd.org/D41558

Best regards,
Thomas
Logged

Werner Fischer

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 14
  • Working at Thomas-Krenn, doing lot of Open Source
    • View Profile
    • Thomas-Krenn-Wiki
Re: Broadcom P225P driver - vlans no longer work
« Reply #9 on: August 23, 2023, 11:20:57 am »
Regarding NICs:
  • Affected: NICs with Broadcom BCM574xx (NXE / Wh+) Chips, e.g. Broadcom P225P
  • Not affected: NICs with Broadcom BCM575xx (Thor) Chips, e.g. Broadcom P425g, P2100G

For an overview, which Chips are used in which NICs see https://www.thomas-krenn.com/de/wiki/Broadcom_Netzwerkkarten

Regarding Kevin Bowling's Patch: we currently do not know whether it fixes the problem. We have not compiled the patch. I assume other FreeBSD users might comment soon here in the Bugreport:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269133#c34
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 16290
  • Karma: 1437
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #10 on: August 23, 2023, 11:25:56 am »
I'll publish a kernel build for you guys in half an hour.


Cheers,
Franco
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 16290
  • Karma: 1437
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #11 on: August 23, 2023, 12:56:43 pm »
Sorry, took a little longer:

# opnsense-update -zkr 23.7.2-bnxt


Cheers,
Franco
Logged

Thomas Niedermeier

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
  • Thomas-Krenn
    • View Profile
    • Thomas-Krenn
Re: Broadcom P225P driver - vlans no longer work
« Reply #12 on: August 23, 2023, 03:41:26 pm »
Hi Franco,

wow very nice, we'll test the Kernel with the cards and give you feedback.
Hopefully it solves the problem, would be fantastic.

Cheers,
Thomas
Logged

Thomas Niedermeier

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
  • Thomas-Krenn
    • View Profile
    • Thomas-Krenn
Re: Broadcom P225P driver - vlans no longer work
« Reply #13 on: August 23, 2023, 04:13:00 pm »
First update: We installed the Kernel and the problem seems fixed, VLANs work!
The interface was accessible via ping. But we will go on and test the new Kernel further in the next days.
Would be fantastic if we already solved the problem with this Kernel.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 16290
  • Karma: 1437
    • View Profile
Re: Broadcom P225P driver - vlans no longer work
« Reply #14 on: August 23, 2023, 04:19:41 pm »
Ok good start. I'll report on the review when you give your final verdict, but I don't have much doubt about shipping this as is in a future kernel.


Cheers,
Franco
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 23.7 Legacy Series »
  • Broadcom P225P driver - vlans no longer work
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2