Pfring-drivers-zc-dkms

0 views
Skip to first unread message

Juliane Bari

unread,
Aug 4, 2024, 5:16:52 PM8/4/24
to poetajagerb
Readyto-use PF_RING packages are available at ,please follow the instructions on the same page for configuring the repositoryand install pfring and pfring-dkms. Optionally you can also installpfring-drivers-zc-dkms if you need the ZC drivers for line-rate captureon Intel adapters.

This section guides you through the PF_RING configuration using the init scripts(init.d or systemctl according to your linux distribution) contained in the pfringpackage, to automate the kernel module and drivers loading. Alternatively pleasenote that it is possible to automatically configure PF_RING and drivers using thepf_ringcfg script (since PF_RING 7.5) or through the nBox GUI.


Since PF_RING 7.5, the pfring package includes the pf_ringcfg script that can beused to automatically create a configuration for the PF_RING kernel module and drivers.This is supposed to work in most cases, however for specific/custom configurations pleaserefer to the Manual Configuration settings.


Below you can find a basic configuration example for using PF_RING with standard driverson Ubuntu using systemd. In this example we tune the kernel buffer size (min_num_slots parameter)to improve the performance and absorbe traffic bursts:


Below you can find a basic configuration example for a dual-port ixgbe card with ZC driverson Ubuntu using systemd, the configuration for other card models is similar (replace ixgbe withyour actual driver family).


Alternatively you can explicitly tell to the init script which are the interfaces you are using as management, and those that you want to use for packet capture, creating a configuration file /etc/pf_ring/interfaces.conf containing:


If you are forcing pf_ring to reload a driver which is in use by the management interface, you probably need toreconfigure the interface after the ZC driver has been loaded. The systemd script supports custom post scripts(as well as pre scripts) that are executed just after loading the pf_ring module and drivers, all you need todo is to create a /etc/pf_ring/post script as in the example below:


As second step the Virtual Functions should be created via /sys fs, by specifying the number of VirtualFunction we want to enable for each physical interface. Some additional configuration via ip commandis also required to run the Virtual Function in promiscuous mode (trust mode) or to assign a VLAN.This can be automated using pre/post scripts. Example:


PF_RING includes a versatile traffic balancer application named zbalance_ipc that can be used to distribute traffic across applications. Here you can read more about its configuration and startup options.

3a8082e126
Reply all
Reply to author
Forward
0 new messages