]> git.proxmox.com Git - mirror_iproute2.git/commit - rdma/rdma.h
rdma: Add filtering infrastructure
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 31 Jan 2018 08:11:49 +0000 (10:11 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Feb 2018 01:23:52 +0000 (17:23 -0800)
commit1174be72d1b4ccb1b078c569bd785445416e85af
treeb880872121c0b5165755e66ddba572e03f5a5f7b
parent5f4892e2c8d4fb22118713e0c83290b352fe0e34
rdma: Add filtering infrastructure

This patch adds general infrastructure to RDMAtool to handle various
filtering options needed for the downstream resource tracking patches.

The infrastructure is generic and stores filters in list of key<->value
entries. There are three types of filters:

1. Numeric - the values are intended to be digits combined with '-' to
mark range and ',' to mark multiple entries, e.g. pid 1-100,234,400-401
is perfectly legit filter to limit process ids.

2. String - the values are consist from strings and "," as a denominator.

3. Link - special case to allow '/' in string to provide link name, e.g.
link mlx4_1/2.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/rdma.c
rdma/rdma.h
rdma/utils.c