On Thu, Nov 21, 2019 at 01:29:57PM +0200, Michal Kalderon wrote: > HW/FW support two types of latency enhancement features. > Until now user-space implemented only edpm (enhanced dpm). > We add kernel capability flags to differentiate between current > FW in kernel that supports both ldpm and edpm. > Since edpm is not yet supported for iWARP we add different flags > for iWARP + RoCE. > We also fix bad practice of defining sizes in rdma-core and pass > initialization to kernel, for forward compatibility. > > The capability flags are added for backward-forward compatibility > between kernel and rdma-core for qedr. > Before this change there was a field called dpm_enabled which could > hold either 0 or 1 value, this indicated whether RoCE edpm was > enabled or not. We modified this field to be dpm_flags, and bit 1 > still holds the same meaning of RoCE edpm being enabled or not. > > Signed-off-by: Michal Kalderon <michal.kalderon@xxxxxxxxxxx> > --- > rdma-core changes in pr #622 https://github.com/linux-rdma/rdma-core/pull/622 > Changes from V1: > Add better description in commit message of how > backward-compatibility is maintained > --- > drivers/infiniband/hw/qedr/verbs.c | 13 ++++++++++++- > include/uapi/rdma/qedr-abi.h | 18 ++++++++++++++++-- > 2 files changed, 28 insertions(+), 3 deletions(-) Applied to for-next, thanks Jason