Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - chiby

#1
No problem.

Yeah, my problem might become a bit bigger challenge as getting the feeling it has less to do with opnsense and more with the included freebsd nic driver.

As I see 22.1 -> 22.7 upgraded from Freebsd 13.0 to 13.1?
If so, the number of commits of the relevant if_em.c file I stopped counting(ok its around 162). Seems like there was a fairly major rework of code for these intel NICs between the two versions.

Anyway, if anyone has any idea, pls don't hold back...
#2
note that my vlan setup is a bit unusual, i'm not using opnsense side vlan features (the only relevant thing i suspect is the igb virtual function driver in freebsd), but setting it on a virtual function (hardware virtualisation using sriov).
you might want to take a look at this post, which could be more relevant to you, though again, i'm just guessing your conf:
https://forum.opnsense.org/index.php?topic=29516.0

re your roll back question, I checked a few doco, but no clear instructions on how to do for a whole release roll back so I just confirmed I have a recent conf backup and reinstalled the old version then applied the previously backed up conf.. it worked fine for me.
#3
i350 NIC - vlan tagged at virtual function level stopped passing traffic after upgrade to 22.7.

the configuration is:


          OPNsense 22.7
                 ^
                  |
proxmox - NIC PCI passthrough to VM
                 ^
                  |
nic i350 with sriov (vlan 20 tagged on some VFs) at linux level

Clients on vlan 20 got isolated. Couldn't capture (tagged/untagged) packets on igb2 with tcpdump from within opnsense. In the end I had to roll back/reinstall 22.1 to get my vlan subnets back. Those VFs with no vlan worked fine though, only issue is with the ones vlan'ed.

The underlying linux udev config setup of the vlan'd interface:

...
KERNEL=="0000:05:00.0", SUBSYSTEM=="pci", DRIVER=="igb", ATTR{vendor}=="0x8086", ATTR{device}=="0x1521", ATTR{sriov_numvfs}="4"
...
KERNEL=="0000:05:00.0", SUBSYSTEM=="pci", DRIVER=="igb", ATTR{vendor}=="0x8086", ATTR{device}=="0x1521", PROGRAM="/sbin/ip link set enp5s0f0 vf 1 mac 02:25:90:92:01:b2 vlan 20 spoofchk off trust on"
...


dmesg has nothing unusual:
igb2: <Intel(R) I350 Virtual Function> mem 0xfde10000-0xfde13fff,0xfde14000-0xfde17fff at device 27.0 on pci6
igb2: Using 1024 TX descriptors and 1024 RX descriptors
igb2: Using 1 RX queues 1 TX queues
igb2: Using MSI-X interrupts with 2 vectors
igb2: Ethernet address: 02:25:90:92:01:b2
igb2: link state changed to UP
igb2: netmap queues/slots: TX 1/1024, RX 1/1024


pciconf output:
igb2@pci0:6:27:0: class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x1520 subvendor=0x15d9 subdevice=0x1521
    vendor     = 'Intel Corporation'
    device     = 'I350 Ethernet Controller Virtual Function'
    class      = network
    subclass   = ethernet


ifconf output:

igb2: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: WLAN
options=4800028<VLAN_MTU,JUMBO_MTU,NOMAP>
ether 02:25:90:92:01:b2
inet 172.20.20.1 netmask 0xffffff00 broadcast 172.20.20.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


No errors, nothing looks bad, still no juice. Any idea how to fix it?

(tried any possible combinations of disable/enable offloads and vlan filtering options inside opnsense..)