Skip to contentSkip to conversation

rdma: Update device capabilities flags

PATCH Applied Leon Romanovsky 2 participants 2 messages Mar 7, 2018 – Mar 8, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rdma: Update device capabilities flags

From: Leon Romanovsky <[email protected]>

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.

---
 rdma/dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
rdma/dev.c +2 -1
index 03ab8683..e2eafe47 100644
@@ -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) };
 
Signature · 1 line
2.16.2
Applied
#1 lore raw
Quoted 24 lines · Leon Romanovsky

From: Leon Romanovsky <[email protected]>

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.

---
 rdma/dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
rdma/dev.c +0 -0
index 03ab8683..e2eafe47 100644

rdma/dev.c static const char *dev_caps_to_str(uint32_t idx) · line 60

Quoted 9 lines
rdma/dev.c +2 -1
@@ -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) };
 

applied to iproute2-next