The first commit adds a new sampling module mod_psample which retrieves sampled packets through the generic netlink channel psample.
mod_psample relies on psample and libmnl helpers from the Mellanox libpsample library. There are no future plans to upstream this library and the authors think it should reside in hsflowd directly so I am including it here directly as a first guess.
Quick breakdown of the new files:
Psample helpers: psample.[ch]
Libmnl helpers: mnlg.[ch]
psample mod: mod_psample
The second commit makes mod_cumulus use psample as the default sampling mod. Earlier Cumulus Linux version (< 4.0) will still be able to use nflog/ulog.
The first commit adds a new sampling module
mod_psample
which retrieves sampled packets through the generic netlink channel psample.mod_psample
relies on psample and libmnl helpers from the Mellanox libpsample library. There are no future plans to upstream this library and the authors think it should reside in hsflowd directly so I am including it here directly as a first guess.Quick breakdown of the new files: Psample helpers:
psample.[ch]
Libmnl helpers:mnlg.[ch]
psample mod:mod_psample
The second commit makes
mod_cumulus
use psample as the default sampling mod. Earlier Cumulus Linux version (< 4.0) will still be able to use nflog/ulog.This change is