Gal Pressman
16e9111e9e
RDMA/efa: Expose device statistics
...
Expose hardware statistics through the sysfs api:
/sys/class/infiniband/efa_0/hw_counters/*.
/sys/class/infiniband/efa_0/ports/1/hw_counters/*.
Reviewed-by: Firas JahJah <firasj@amazon.com >
Reviewed-by: Yossi Leybovich <sleybo@amazon.com >
Signed-off-by: Gal Pressman <galpress@amazon.com >
Link: https://lore.kernel.org/r/20190725130353.11544-1-galpress@amazon.com
Signed-off-by: Doug Ledford <dledford@redhat.com >
2019-07-29 13:51:52 -04:00
Leon Romanovsky
e39afe3d6d
RDMA: Convert CQ allocations to be under core responsibility
...
Ensure that CQ is allocated and freed by IB/core and not by drivers.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com >
Acked-by: Gal Pressman <galpress@amazon.com >
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com >
Tested-by: Dennis Dalessandro <dennis.dalessandro@intel.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2019-06-11 16:39:49 -04:00
Leon Romanovsky
a52c8e2469
RDMA: Clean destroy CQ in drivers do not return errors
...
Like all other destroy commands, .destroy_cq() call is not supposed
to fail. In all flows, the attempt to return earlier caused to memory
leaks.
This patch converts .destroy_cq() to do not return any errors.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com >
Acked-by: Gal Pressman <galpress@amazon.com >
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2019-06-11 16:17:10 -04:00
Gal Pressman
2367d00e2c
RDMA/efa: Remove unused includes
...
Remove leftover includes that are no longer used from the driver.
Reviewed-by: Firas JahJah <firasj@amazon.com >
Reviewed-by: Yossi Leybovich <sleybo@amazon.com >
Signed-off-by: Gal Pressman <galpress@amazon.com >
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com >
2019-05-29 13:20:48 -03:00
Gal Pressman
853f565235
RDMA/efa: Add the efa.h header file
...
Add EFA driver generic header file defining driver's device independent
internal data structures and definitions.
Signed-off-by: Gal Pressman <galpress@amazon.com >
Reviewed-by: Steve Wise <swise@opengridcomputing.com >
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com >
2019-05-06 15:18:17 -03:00