]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
rdma: Update device capabilities flags
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 7 Mar 2018 09:05:35 +0000 (11:05 +0200)
committerDavid Ahern <dsahern@gmail.com>
Thu, 8 Mar 2018 17:15:28 +0000 (09:15 -0800)
In kernel commit e1d2e8873369 ("IB/core: Add PCI write
end padding flags for WQ and QP"), we introduced new
device capability to advertise PCI write end padding.

PCI write end padding is the device's ability to pad the ending of
incoming packets (scatter) to full cache line such that the last
upstream write generated by an incoming packet will be a full cache
line.

This commit updates RDMAtool to present this field.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
rdma/dev.c

index 03ab8683332d661c9cc69faa75e7722782fd892a..e2eafe47311b0a43d48aca10e3023531a2d52644 100644 (file)
@@ -53,7 +53,8 @@ static const char *dev_caps_to_str(uint32_t idx)
        x(SG_GAPS_REG, 32) \
        x(VIRTUAL_FUNCTION, 33) \
        x(RAW_SCATTER_FCS, 34) \
-       x(RDMA_NETDEV_OPA_VNIC, 35)
+       x(RDMA_NETDEV_OPA_VNIC, 35) \
+       x(PCI_WRITE_END_PADDING, 36)
 
        enum { RDMA_DEV_FLAGS(RDMA_BITMAP_ENUM) };