sflow / host-sflow

host-sflow agent
http://sflow.net
Other
146 stars 55 forks source link

[RFC] cumulus: support for the generic netlink sampling channel psample #31

Closed aroulin closed 5 years ago

aroulin commented 5 years ago

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 Reviewable