• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Bug in Broadcom bnxt driver in combination with VLANs

Hardware
6
24
2.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    PalisadesTahoe @tmoehle
    last edited by Aug 2, 2023, 11:42 PM

    I think I'm running into the same issue. Brand new Dell server with BCM57416. Works fine with single VLAN assigned to the nic, as soon as I add a second VLAN, I get the "Attempt to re-allocate" error on screen and everything breaks. Haven't found a way around it yet.
    -S

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Aug 3, 2023, 12:03 AM

      You would need to recompile the driver with the patch and load it as a module. Non-trivial.
      It's not included upstream yet even in main: https://github.com/freebsd/freebsd-src/tree/main/sys/dev/bnxt

      Steve

      T D 2 Replies Last reply Aug 3, 2023, 12:15 AM Reply Quote 0
      • T
        tmoehle @stephenw10
        last edited by tmoehle Aug 3, 2023, 12:16 AM Aug 3, 2023, 12:15 AM

        @stephenw10 said in Bug in Broadcom bnxt driver in combination with VLANs:

        You would need to recompile the driver with the patch and load it as a module. Non-trivial.

        So, I assume you'd suggest going back to 2.6 for now?

        D 1 Reply Last reply Aug 21, 2023, 2:03 PM Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Aug 3, 2023, 10:58 AM

          Since it looks like that's in VLAN filtering in the driver you could try disabling VLAN hardware off loading on the NIC.

          T 1 Reply Last reply Aug 3, 2023, 11:22 AM Reply Quote 0
          • T
            tmoehle @stephenw10
            last edited by Aug 3, 2023, 11:22 AM

            @stephenw10
            Thank you for that suggestion. The idea was promising, but unfortunately not successful. I tried:

            ifconfig bnxt0 -vlanhwtag -vlanhwfilter -vlanhwtso
            ifconfig bnxt1 -vlanhwtag -vlanhwfilter -vlanhwtso
            

            But the errors remain :(

            S 1 Reply Last reply Aug 3, 2023, 11:52 AM Reply Quote 0
            • S
              slu @tmoehle
              last edited by Aug 3, 2023, 11:52 AM

              I'm also interested in a workaround, we plan to use the Broadcom BCM57416 with VLANs.

              pfSense Gold subscription

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Aug 3, 2023, 11:59 AM

                Mmm, worth trying but I did expect to see that on the FreeBSD bug report.

                In he short term going back to 2.6 may be the only option.

                1 Reply Last reply Reply Quote 0
                • D
                  Delegator5042 @stephenw10
                  last edited by Aug 20, 2023, 2:44 PM

                  @stephenw10
                  Can you point me where to look if I want to try and recompile this for myself?
                  I'm a beginner but I would like to try to get my NIC to work with more than 1 VLAN

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Aug 20, 2023, 2:50 PM

                    As far as I can see there is no validated patch for this yet: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269133#c31

                    D 1 Reply Last reply Aug 20, 2023, 2:52 PM Reply Quote 0
                    • D
                      Delegator5042 @stephenw10
                      last edited by Aug 20, 2023, 2:52 PM

                      @stephenw10
                      A bummer, but can't be helped! I'll have to find other uses for the NIC in the meantime.
                      Thanks for the quick response!

                      1 Reply Last reply Reply Quote 0
                      • D
                        Delegator5042 @tmoehle
                        last edited by Aug 21, 2023, 2:03 PM

                        @tmoehle Did going back to 2.6 make the VLANs functional?
                        I tried it for a bit and didn't get anywhere (didn't get the re-allocate error but the interface didn't forward any traffic)
                        Going back to 2.6 permanently also seems cumbersome since I could not install packages from the package manager until I update to 2.7 again.

                        T 1 Reply Last reply Aug 21, 2023, 4:01 PM Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Aug 21, 2023, 3:26 PM

                          You can install packages, just set the repo branch to 2.6 (deprecated).

                          1 Reply Last reply Reply Quote 2
                          • T
                            tmoehle @Delegator5042
                            last edited by Aug 21, 2023, 4:01 PM

                            @Delegator5042
                            I did a clean install for pfsense 2.6 and restored the old configuration backup. That went perfectly smooth. After that, as @stephenw10 already suggested, I went to System > Update and changed the desired branch to 2.6, so I could download packages again.

                            D 2 Replies Last reply Aug 21, 2023, 4:35 PM Reply Quote 0
                            • D
                              Delegator5042 @tmoehle
                              last edited by Aug 21, 2023, 4:35 PM

                              @tmoehle
                              Encouraging to hear! I will give it a(nother) proper go then.
                              Silly me just read an old forum posts about the packages requiring an update, which I somehow can't find anymore so I probably didn't read something correct when I was looking for a place to download 2.6

                              1 Reply Last reply Reply Quote 0
                              • D
                                Delegator5042 @tmoehle
                                last edited by Aug 22, 2023, 9:28 AM

                                @tmoehle Sorry for prying a lot, but do the VLANs on your NIC really work?
                                I installed 2.6 and the NIC works without VLANs.
                                When I create a VLAN and assign it to an interface, No traffic gets through (oddly enough the DHCP does work)
                                When I set a different network port (non bnxt) with the same VLAN to the same configured interface, it all works (albeit I have to reload firewall rules first).

                                I am hoping that I am doing something wrong, since DHCP somehow still works on the VLAN with bnxt, but I don't see any issues with the gateway and the firewall rule permits the traffic.

                                T 1 Reply Last reply Aug 22, 2023, 10:05 AM Reply Quote 0
                                • T
                                  tmoehle @Delegator5042
                                  last edited by Aug 22, 2023, 10:05 AM

                                  @Delegator5042 My VLANs are working perfectly fine, yes. If your DHCP is working within those VLANs and pfsense is your only DHCP server, then chances are you overlook something.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Aug 29, 2023, 2:42 PM

                                    This should now be fixed in the next 23.09 snapshots if anyone can test that.

                                    Steve

                                    T 1 Reply Last reply Sep 12, 2023, 3:52 PM Reply Quote 0
                                    • T
                                      tmoehle @stephenw10
                                      last edited by Sep 12, 2023, 3:52 PM

                                      @stephenw10 Will it only go into 23.09 or will there also be an update for CE?

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Sep 12, 2023, 4:01 PM

                                        It's fixed upstream in FreeBSD so it will be pulled into new CE builds.

                                        C 2 Replies Last reply Oct 25, 2024, 3:56 PM Reply Quote 1
                                        • C
                                          chinraam @stephenw10
                                          last edited by Oct 25, 2024, 3:56 PM

                                          @stephenw10 Hi. With pfsense version 2.7.0 im still facing this issue.

                                          Will it get resolved in 2.7.2 or should i downgrade?

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.