]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: query_device: Return correct #SGEs for EoIB
authorHakon Bugge <Haakon.Bugge@oracle.com>
Tue, 1 Nov 2016 13:16:30 +0000 (14:16 +0100)
committerKnut Omang <knut.omang@oracle.com>
Fri, 11 Nov 2016 16:36:56 +0000 (17:36 +0100)
commit92123828c8fce308f01205eb37847f65b0b94c31
tree2bf3fb7025c00a700fd9fd68e1550cd8c874542b
parent17a4f30b2a4d2587ce8e97ea0aa87592e8349560
sif: query_device: Return correct #SGEs for EoIB

ULPs that use LSO, can only create QPs with #SGE entries being one
less than what is supported in HW. This because PSIF uses one entry
for the LSO stencil. The driver attempts to detect the ULP and from
that derive if LSO will be used.

This commit adds support for XVE (Xsigo Virtual Ethernet), and a
query_device() from the XVE driver (not the connected mode part), will
return one less #SGEs.

Further, since the XVE ULP is detected, we amend the sysfs listing of
QPs with EoIB (for XVE datagram mode QPs) and EoIB_CM (for XVE
connected mode QPs).

Orabug: 25027106

Signed-off-by: Hakon Bugge <Haakon.Bugge@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
drivers/infiniband/hw/sif/sif_defs.c
drivers/infiniband/hw/sif/sif_qp.c
drivers/infiniband/hw/sif/sif_qp.h
drivers/infiniband/hw/sif/sif_query.c