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

    Porting BGE Driver to IFLIB...

    Scheduled Pinned Locked Moved Hardware
    27 Posts 4 Posters 3.0k Views
    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.
    • bmeeksB
      bmeeks @NRgia
      last edited by bmeeks

      @NRgia said in Porting BGE Driver to IFLIB...:

      @bmeeks said in Porting BGE Driver to IFLIB...:

      I suggest seeing if you can find the driver's maintainer in FreeBSD and find out from him or her why the 12.1 FreeBSD branch contains an older or "bad" version of that particular driver.

      They aren't very responsive or helpful. I can throw some names here also from Intel, but they don't seem to care. I will try some more. Thank you

      I think maybe I saw this guy referenced in some of your earlier posts, but he appears to be the active maintainer for the NIC stuff in FreeBSD: https://github.com/ricera. His name is Eric Joyner from Hillsboro, Oregon. Since Oregon is where Intel's research and development is located, I'm assuming this guy is possibly an Intel employee.

      The real incentive for getting open-source hardware drivers fixed lies with the manufacturers since they need wider compatibility of their product in order to sell more of it. So the more operating systems that have support for their hardware, the better for them profit-wise. Thus the incentive to fix the netmap problem would logically rest more with Intel than FreeBSD itself.

      N 1 Reply Last reply Reply Quote 0
      • N
        NRgia @bmeeks
        last edited by

        @bmeeks said in Porting BGE Driver to IFLIB...:

        I think maybe I saw this guy referenced in some of your earlier posts, but he appears to be the active maintainer for the NIC stuff in FreeBSD: https://github.com/ricera. His name is Eric Joyner from Hillsboro, Oregon. Since Oregon is where Intel's research and development is located, I'm assuming this guy is possibly an Intel employee.

        I spoke with him already:
        Intel response.png

        Maybe you saw him mentioned in my other thread here, in the first posts:
        https://forum.netgate.com/topic/154014/netmap-not-supported-for-intel-x553-driver-in-pfsense-2-5-0

        Any other replies asking for a new driver or so were met with silence.

        I also contacted the FreeBSD intel-ix-kmod maintainer:
        intel-ix-kmod response.png

        Believe me I tried :)

        bmeeksB 1 Reply Last reply Reply Quote 0
        • N
          NRgia @bmeeks
          last edited by NRgia

          @bmeeks said in Porting BGE Driver to IFLIB...:

          @NRgia said in Porting BGE Driver to IFLIB...:

          @bmeeks said in Porting BGE Driver to IFLIB...:

          I suggest seeing if you can find the driver's maintainer in FreeBSD and find out from him or her why the 12.1 FreeBSD branch contains an older or "bad" version of that particular driver.

          They aren't very responsive or helpful. I can throw some names here also from Intel, but they don't seem to care. I will try some more. Thank you

          Checkout the Github mirror link I posted. You will see that making the changes is not a trivial task.

          I can see, I don't know C, only Java, and even if I knew, I must understand first what to change. But it will be time consuming, not a quick fix.

          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks @NRgia
            last edited by

            @NRgia said in Porting BGE Driver to IFLIB...:

            @bmeeks said in Porting BGE Driver to IFLIB...:

            I think maybe I saw this guy referenced in some of your earlier posts, but he appears to be the active maintainer for the NIC stuff in FreeBSD: https://github.com/ricera. His name is Eric Joyner from Hillsboro, Oregon. Since Oregon is where Intel's research and development is located, I'm assuming this guy is possibly an Intel employee.

            I spoke with him already:
            Intel response.png

            Maybe you saw him mentioned in my other thread here, in the first posts:
            https://forum.netgate.com/topic/154014/netmap-not-supported-for-intel-x553-driver-in-pfsense-2-5-0

            Any other replies asking for a new driver or so were met with silence.

            I also contacted the FreeBSD intel-ix-kmod maintainer:
            intel-ix-kmod response.png

            Believe me I tried :)

            Hmm...curious since I saw where Eric specifically modified some of the ixgbe driver source files to port them to iflib. Of course that was in 2017.

            1 Reply Last reply Reply Quote 0
            • NollipfSenseN
              NollipfSense
              last edited by

              What a dilemma this driver issue is, indeed! Drives me up the wall ... I can clearly see that pfSense hands-off approach is not against us ... it came with the building foundation. We should all tell Intel we're returning the hardware.

              pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
              pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

              bmeeksB 1 Reply Last reply Reply Quote 0
              • bmeeksB
                bmeeks @NollipfSense
                last edited by bmeeks

                @NollipfSense said in Porting BGE Driver to IFLIB...:

                What a dilemma this driver issue is, indeed! Drives me up the wall ... I can clearly see that pfSense hands-off approach is not against us ... it came with the building foundation. We should all tell Intel we're returning the hardware.

                @NRgia and I have been in an extensive private chat today and may be on the way to a solution. He is trying a custom compile of a new driver from the lastest ports tree.

                NollipfSenseN 1 Reply Last reply Reply Quote 0
                • N
                  NRgia
                  last edited by NRgia

                  I have managed to compile the new driver from the new version of intel-ix-kmod that Serghey Kozlvov updated for me.

                  I have good news and bad news:

                  The good one: Netmap works in Native mode, and it seems it doesn't use iflib
                  The bad one: The Speed didn't improve.

                  Guided by @bmeeks I also did some iperf tests with Suricata stopped(Netmap also stopped) with both drivers:

                  The tests were done from a LOCAL linux host to pfSense:

                  1. With Intel-ix-kmod driver version 3.3.14:
                    Client connecting to 172.18.0.12, TCP port 5201
                    TCP window size: 255 KByte (default)

                  [ 3] local 172.18.0.10 port 44654 connected with 172.18.0.12 port 5201
                  [ ID] Interval Transfer Bandwidth
                  [ 3] 0.0-10.0 sec 670 MBytes 562 Mbits/sec

                  1. With FreeBSD 12.1 in-kernel driver 4.0.1-k:
                    Client connecting to 172.18.0.12, TCP port 5201
                    TCP window size: 255 KByte (default)

                  [ 3] local 172.18.0.10 port 44654 connected with 172.18.0.12 port 5201
                  [ ID] Interval Transfer Bandwidth
                  [ 3] 0.0-10.0 sec 670 MBytes 562 Mbits/sec

                  This was not relevant to pin point the culprit, and I will try tommorrow to downgrade to pfSense 2.4.5 - FreeBSD 11.3 to see what speed will I get.

                  I would also like to thank @bmeeks for assistance on private chat.

                  I also uploaded the compiled driver for reference
                  if_ix_ko.zip

                  NollipfSenseN 1 Reply Last reply Reply Quote 0
                  • NollipfSenseN
                    NollipfSense @bmeeks
                    last edited by

                    @bmeeks said in Porting BGE Driver to IFLIB...:

                    @NollipfSense said in Porting BGE Driver to IFLIB...:

                    What a dilemma this driver issue is, indeed! Drives me up the wall ... I can clearly see that pfSense hands-off approach is not against us ... it came with the building foundation. We should all tell Intel we're returning the hardware.

                    @NRgia and I have been in an extensive private chat today and may be on the way to a solution. He is trying a custom compile of a new driver from the lastest ports tree.

                    Awesome ... hooray, applauding! 😎

                    pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                    pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                    1 Reply Last reply Reply Quote 0
                    • NollipfSenseN
                      NollipfSense @NRgia
                      last edited by

                      @NRgia said in Porting BGE Driver to IFLIB...:

                      The good one: Netmap works in Native mode, and it seems it doesn't use iflib

                      That means or suggest it didn't make it into the kernel ... doesn't it? That behavior seems to be the old method that should work with FreeBSD 11.3.

                      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                      N 1 Reply Last reply Reply Quote 0
                      • N
                        NRgia @NollipfSense
                        last edited by NRgia

                        @NollipfSense said in Porting BGE Driver to IFLIB...:

                        @NRgia said in Porting BGE Driver to IFLIB...:

                        The good one: Netmap works in Native mode, and it seems it doesn't use iflib

                        That means or suggest it didn't make it into the kernel ... doesn't it? That behavior seems to be the old method that should work with FreeBSD 11.3.

                        I have asked the maintainer of intel-ix-kmod here https://www.freshports.org/net/intel-ix-kmod to update the ports.

                        So at least for all the cards that are using this driver we now have 2 options to run NETMAP in Native mode:

                        1. Compile from intel-ix-kmod port- And NETMAP will not use iflib
                        2. Use the in-kernel driver, which may be old, that uses iflib

                        If I try the third version, downloading the driver from Intel site directly, and then compile, Netmap will not start in Native mode.

                        So you are right it will work with FreeBSD 11.3 also

                        1 Reply Last reply Reply Quote 0
                        • N
                          NRgia
                          last edited by

                          Because I don't want to hijack @NollipfSense 's thread anymore I published the speed tests for pfSense 2.4.5-p1 and pfSense 2.5.0 on my initial thread here : https://forum.netgate.com/topic/154014/netmap-not-supported-for-intel-x553-driver-in-pfsense-2-5-0/40

                          NollipfSenseN 1 Reply Last reply Reply Quote 0
                          • NollipfSenseN
                            NollipfSense @NRgia
                            last edited by

                            @NRgia said in Porting BGE Driver to IFLIB...:

                            Because I don't want to hijack @NollipfSense 's thread anymore

                            I would not worry about it ... I left the thread open for others, such as yourself who may want to attempt the porting ... thank you for contributing!

                            pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                            pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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