Daniel Kranzdorf
666e8ff535
RDMA/efa: Expose RDMA read related attributes
...
Query the device attributes for RDMA operations, including maximum
transfer size and maximum number of SGEs per RDMA WR, and report them
back to the userspace library.
Link: https://lore.kernel.org/r/20191121141509.59297-4-galpress@amazon.com
Signed-off-by: Daniel Kranzdorf <dkkranzd@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-11-25 10:31:48 -04:00
Daniel Kranzdorf
e6c4f3ff43
RDMA/efa: Support remote read access in MR registration
...
Enable remote read access for memory regions in order to support RDMA
operations.
Link: https://lore.kernel.org/r/20191121141509.59297-3-galpress@amazon.com
Signed-off-by: Daniel Kranzdorf <dkkranzd@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-11-25 10:31:47 -04:00
Gal Pressman
bcf7cc534c
RDMA/efa: Store network attributes in device attributes
...
There's no reason to separate the network attributes from all other
device attributes. Embed the fields inside the device attributes and
query them all in one function.
Link: https://lore.kernel.org/r/20191121141509.59297-2-galpress@amazon.com
Reviewed-by: Daniel Kranzdorf <dkkranzd@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-11-25 10:31:47 -04:00
Gal Pressman
a3f4b8e318
RDMA/efa: Fix incorrect error print
...
The error print should indicate that it failed to get the queue
attributes, not network attributes.
Link: https://lore.kernel.org/r/20190910134301.4194-2-galpress@amazon.com
Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com >
Reviewed-by: Firas JahJah <firasj@amazon.com >
Signed-off-by: Gal Pressman <galpress@amazon.com >
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com >
2019-09-16 14:25:43 -03:00
Gal Pressman
cfa1f5f27c
RDMA/efa: Rate limit admin queue error prints
...
Admin queue error prints should never happen unless something wrong
happened to the device. However, in the unfortunate case that it does,
we should take extra care not to flood the log with error messages.
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/20190801171447.54440-3-galpress@amazon.com
Signed-off-by: Doug Ledford <dledford@redhat.com >
2019-08-05 12:19:55 -04:00
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
Jason Gunthorpe
371bb62158
Merge tag 'v5.2-rc6' into rdma.git for-next
...
For dependencies in next patches.
Resolve conflicts:
- Use uverbs_get_cleared_udata() with new cq allocation flow
- Continue to delete nes despite SPDX conflict
- Resolve list appends in mlx5_command_str()
- Use u16 for vport_rule stuff
- Resolve list appends in struct ib_client
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com >
2019-06-28 21:18:23 -03:00
Firas Jahjah
4b06843d40
RDMA/efa: Print address on AH creation failure
...
For debugging purposes, print destination address if failed to create AH.
Signed-off-by: Firas Jahjah <firasj@amazon.com >
Reviewed-by: Yossi Leybovich <sleybo@amazon.com >
Signed-off-by: Gal Pressman <galpress@amazon.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2019-06-21 11:52:44 -04:00
Gal Pressman
b41f75724a
RDMA/efa: Be consistent with success flow return value
...
The EFA driver is written with success oriented flows in mind, meaning
that functions should mostly end with a return 0 statement.
Error flows return their error value on their own instead of assuming
that the function will return the error at the end.
This commit fixes a bunch of functions that were not aligned with this
behavior.
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: Doug Ledford <dledford@redhat.com >
2019-06-21 11:52:44 -04:00
Gal Pressman
529254340c
RDMA/efa: Fix success return value in case of error
...
Existing code would mistakenly return success in case of error instead
of a proper return value.
Fixes: e9c6c53730 ("RDMA/efa: Add common command handlers")
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: Doug Ledford <dledford@redhat.com >
2019-06-17 21:35:21 -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
e9c6c53730
RDMA/efa: Add common command handlers
...
Add the EFA common commands implementation.
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:18 -03:00