Closed Arislen closed 4 months ago
Adding journalctl output of the pf_ringcfg command that caused the removal of the management interface:
The issue seems to be that we have a card in the host that uses i40e and a card that uses ice. When /usr/bin/pf_ringctl loads the zc driver for ice, it unloads irdma first, since the non-zc version of ice uses it. I guess that's necessary?
But anyway, the issue is that i40e also depends on irdma, like ice does. So when irdma is unloaded, it brings down the management interface that needs the i40e driver.
I don't pretend to understand why the following works, but it does. After starting pfring (thus losing the mgmt iface), we can manually modprobe i40e and get the mgmt iface back. What's confusing is lsmod | grep i40e
no longer lists irdma as a dependency of i40e like it used to, but whatever.
@pastly I think this is due to modprobe -r which is also unloading dependencies, I pushed an update using rmmod instead, a new package will also be available shortly. Please update and let me know if it fixed the issue. Thank you.
The patch fixed the issue as it removed the irdma kernel mod and kept the i40e interfaces up.
In the general case if a user needs irdma on the i40e (we don't as we run it at 1G with no need for the rdma function) this will remove that capability and likely would need another workaround.
The problem is that the irdma prevents the ice driver from being reloaded. We can reload the irdma module or let the user handle that in the pfring "post" script.
OS: Red Hat Enterprise Linux release 8.8 (Ootpa) Kernel: Linux 4.18.0-477.27.1.el8_8.x86_64 #1 SMP Thu Aug 31 10:29:22 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
System has the most up2date RHEL patches.
NTOP Versions Installed (from: https://packages.ntop.org/ Nightly Build Repository)
pfring-8.7.0-8936.x86_64 pfring-dkms-8.7.0.8936-dkms.noarch n2disk-3.7.240226-5500.x86_64 ice-zc-1.12.7.8936-dkms.noarch
The i40e driver is NOT installed as we aren't going to use any of those interfaces for capture.
Our capture interface is ens3f1. Our management interface is eno12399
Before we run pf_ringcfg:
/etc/pf_ring/interfaces.conf:
To enable ice ZC driver we run:
pf_ringcfg --configure-driver ice --rss-queues 1
The management interface disappears and we can no longer ssh into the system:
When we run:
systemctl stop pf_ring
The interfaces reappear and we can then ssh back into the system.