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

    Mellanox ConnectX-2 VLAN

    Scheduled Pinned Locked Moved Hardware
    6 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.
    • A
      arduino
      last edited by

      I am trying to use a Mellanox ConnectX-2 with pfSense as 10G SFP+ connection to a MikroTik Cloud switch. Everything seems to work fine, the interface shows up and iperf shows full speed, but whenever I create a VLAN interface on the interface pfSense crashes.

      After the crash, the VLAN interface shows as assigned but anything trying to connect on that VLAN fails.

      I downloaded the the FreeBSD drivers, packed and moved to /boot/kernel ( ibcore.kp, ipoib.ko, mlx4.ko, mlx4ib.ko mlxen.ko )

      added the below to /boot/loader.conf.local
      mlx4_load=”YES”
      mlx4ib_load=”YES”
      mlxen_load=”YES”
      ipoib_load=”YES”

      Here is part of the crash report:

      vlan1: changing name to 'mlxen1_vlan2'
      Fatal trap 12: page fault while in kernel mode
      cpuid = 0; apic id = 00
      fault virtual address  = 0x18
      fault code  = supervisor read data, page not present
      instruction pointer  = 0x20:0xffffffff80aa8684
      stack pointer          = 0x28:0xfffffe001a3ee380
      frame pointer          = 0x28:0xfffffe001a3ee3a0
      code segment  = base 0x0, limit 0xfffff, type 0x1b
      = DPL 0, pres 1, long 1, def32 0, gran 1
      processor eflags  = interrupt enabled, resume, IOPL = 0
      current process  = 12 (swi4: clock)

      Anyone have any idea what I am doing wrong? I am pretty sure these interfaces are not supported but I would really like to do some testing.

      1 Reply Last reply Reply Quote 0
      • E
        Edge
        last edited by

        Hey,

        i know this topic is nearly one year old, i'm running to the same Problems. Even when i delete the VLANs and add a simple IP to the mlxen0 Interface, i can't bring any TCP Traffic throught it or i can't ping the card itself.
        Are there any plans to get the driver to work or do i need to work with other cards (chelsio t4 or so)

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by

          vlan1: changing name to 'mlxen1_vlan2'
          Fatal trap 12: page fault while in kernel mode
          

          In many cases the VLAN1 is the default VLAN and should not or even can´t be changed
          to another name or deleted! Perhpas it is something running this manner.

          1 Reply Last reply Reply Quote 0
          • A
            arduino
            last edited by

            Nope, it happens on any VLAN ID.

            I never did figure this out either. I remember reading something about changing a few lines of code, but it required I setup another BSD machine to compile and I didn't have the time.

            I am about to see if I can find the post now.

            1 Reply Last reply Reply Quote 0
            • L
              LasseKongo
              last edited by

              I just acquired a bunch of dirt cheap Connectx-2 ethernet cards, and hoped I could use them with PFsense. Where can I download the drivers to try it out ? Mellanox OFED only seems to support Connectx-3 and newer.
              If it doesn´t work with the Mellanox cards, would the Intel X520 DA1 be a better option ?

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by

                If it doesn´t work with the Mellanox cards, would the Intel X520 DA1 be a better option ?

                I would say yes, but the best option for 10 GbE at the time is to get your hands on a Chelsio adapters
                like this ones from the pfSense store, they are best driver supported at these days.

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