diff options
| author | Parav Pandit <parav@mellanox.com> | 2019-02-13 20:23:04 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-16 07:52:17 +0300 |
| commit | 5767198a14c796354e8a96fcdc7db12ee46a0623 (patch) | |
| tree | d52219083298e32365ec299136275024f20b7f9a /tools/perf/scripts/python/sctop.py | |
| parent | e155755e53804e721c8ce99474cc9c65eb8e8bc2 (diff) | |
| download | linux-5767198a14c796354e8a96fcdc7db12ee46a0623.tar.xz | |
RDMA/core: Introduce and use ib_setup_port_attrs()
Refactor code for device and port sysfs attributes for reuse.
While at it, rename counter part free function to ib_free_port_attrs.
Also attribute setup sequence is:
(a) port specific init.
(b) device stats alloc/init.
So for cleanup, follow reverse sequence:
(a) device stats dealloc
(b) port specific cleanup
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
