Re: [PATCH iproute2-next 3/9] rdma: Add filtering infrastructure

2018-01-02 Thread David Ahern
On 1/2/18 2:37 AM, Leon Romanovsky wrote: > +/* > + * Check if string entry is filtered: > + * * key doesn't exist -> user didn't request -> not filtered > + */ > +bool rd_check_is_string_filtered(struct rd *rd, const char *key, char *val) > +{ > + bool key_is_filtered = false; > + struct

[PATCH iproute2-next 3/9] rdma: Add filtering infrastructure

2018-01-02 Thread Leon Romanovsky
From: Leon Romanovsky 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 v