aboutsummaryrefslogtreecommitdiff
path: root/pcap-rdmasniff.h
Commit message (Collapse)AuthorAgeFilesLines
* RDMA sniffing support for pcapRoland Dreier2017-08-251-0/+2
Implement capture support for offloaded RDMA traffic. This uses the RDMA verbs "flow steering" interface, which is available in the Linux kernel since version 3.12. The userspace interface is ibv_create_flow() - so building this support in pcap adds a new dependency on libibverbs. I added a new "rdmasniff" pcap module, which exposes RDMA devices under an interface name equal to their libibverbs name. The module uses the RDMA verbs interface to create a receive queue with a flow steering rule that gets a copy of all packets, even offloaded packets generated by or consumed by the hardware. The autoconf test for a usable version of libibverbs is a bit complicated because ibv_create_flow() is defined as an inline function in the header file, so we need to find the library and header and then try to link a program to check if the API is usable (it appeared in libibverbs 1.1.8).