diff options
| author | Mark Zhang <[email protected]> | 2019-10-20 06:28:00 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-10-24 18:31:23 +0000 |
| commit | a15542bb72a48042f5df7475893d46f725f5f9fb (patch) | |
| tree | 082f1c32c308ee7365e49270fdfe150f19d9c674 /net/unix/af_unix.c | |
| parent | RDMA/uverbs: Prevent potential underflow (diff) | |
| download | kernel-a15542bb72a48042f5df7475893d46f725f5f9fb.tar.gz kernel-a15542bb72a48042f5df7475893d46f725f5f9fb.zip | |
RDMA/nldev: Skip counter if port doesn't match
The counter resource should return -EAGAIN if it was requested for a
different port, this is similar to how QP works if the users provides a
port filter.
Otherwise port filtering in netlink will return broken counter nests.
Fixes: c4ffee7c9bdb ("RDMA/netlink: Implement counter dumpit calback")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Zhang <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
