]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: cq: transfer headroom attribute to user mode
authorKnut Omang <knut.omang@oracle.com>
Fri, 21 Oct 2016 06:23:39 +0000 (08:23 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 24 Oct 2016 16:06:02 +0000 (09:06 -0700)
commit53d1b5cd28bff4250a8dabba70cf7a56b97d761f
tree44d57deae5c9fd33209de3dd7a85af094b89a2fc
parentf19d1ca8dfa0a960e1824df500d3fec94ec811f0
sif: cq: transfer headroom attribute to user mode

This commit makes sure old libsif versions works
with the driver while providing a forward compatible
way of making additional changes to the extra
headroom in the CQs.

We anticipate to be able to trim
down the extra entries once we have PQP errors
handled transparently. This commit then ensures that
the headroom is only set in one place, at the
driver side, and that user mode just can
pick up the configured headroom from the kernel.
This is done by providing the used headroom
in a formerly reserved 32 bit field, thus no changes
to the packet size is necessary.

Nevertheless we increment the abi version from
3.6 to 3.7 to allow libsif to detect whether
the headroom field can be trusted.

Orabug: 24926265

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: franklin <osl04sys_no_grp@oracle.com>
drivers/infiniband/hw/sif/sif_cq.c
drivers/infiniband/hw/sif/sif_user.h
drivers/infiniband/hw/sif/version.c
drivers/infiniband/hw/sif/versioninfo.h