Message ID | 20191020062800.8065-1-leon@kernel.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | a15542bb72a48042f5df7475893d46f725f5f9fb |
Delegated to: | Jason Gunthorpe |
Headers | show |
Series | [rdma-next] RDMA/nldev: Skip counter if port doesn't match | expand |
On Sun, Oct 20, 2019 at 09:28:00AM +0300, Leon Romanovsky wrote: > From: Mark Zhang <markz@mellanox.com> > > Counter resource should return -EAGAIN if it was requested for other > part. Such situation can occur in multi-port systems. > > Fixes: c4ffee7c9bdb ("RDMA/netlink: Implement counter dumpit calback") > Signed-off-by: Mark Zhang <markz@mellanox.com> > Signed-off-by: Leon Romanovsky <leonro@mellanox.com> > --- > drivers/infiniband/core/nldev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to for-rc, thanks Jason
diff --git a/drivers/infiniband/core/nldev.c b/drivers/infiniband/core/nldev.c index 5e056d5e5be3..b61005f03166 100644 --- a/drivers/infiniband/core/nldev.c +++ b/drivers/infiniband/core/nldev.c @@ -832,7 +832,7 @@ static int fill_res_counter_entry(struct sk_buff *msg, bool has_cap_net_admin, container_of(res, struct rdma_counter, res); if (port && port != counter->port) - return 0; + return -EAGAIN; /* Dump it even query failed */ rdma_counter_query_stats(counter);