diff mbox

IB: Add additional info on CNP

Message ID 20150803163658.8594.61765.stgit@phlsvslse11.ph.intel.com (mailing list archive)
State Accepted
Headers show

Commit Message

Marciniszyn, Mike Aug. 3, 2015, 4:36 p.m. UTC
Commit c50f8564f283 ("IB: Add CNP opcode enumeration.")
added an opcode from the IBTA 3.1 specification.

Add a comment in the source referencing the relevant
specification sections.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
---
 drivers/staging/hfi1/TODO |    2 --
 include/rdma/ib_pack.h    |    1 +
 2 files changed, 1 insertion(+), 2 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Doug Ledford Aug. 14, 2015, 7:04 p.m. UTC | #1
On 08/03/2015 12:36 PM, Mike Marciniszyn wrote:
> Commit c50f8564f283 ("IB: Add CNP opcode enumeration.")
> added an opcode from the IBTA 3.1 specification.
> 
> Add a comment in the source referencing the relevant
> specification sections.
> 
> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>

Added to my hfi1-v4 branch
diff mbox

Patch

diff --git a/drivers/staging/hfi1/TODO b/drivers/staging/hfi1/TODO
index 2529149..cc2e51d 100644
--- a/drivers/staging/hfi1/TODO
+++ b/drivers/staging/hfi1/TODO
@@ -3,5 +3,3 @@  July, 2015
 - Remove unneeded file entries in sysfs
 - Remove software processing of IB protocol and place in library for use
   by qib, ipath (if still present), hfi1, and eventually soft-roce
-- Clean up comments in code around CNP opcode
-
diff --git a/include/rdma/ib_pack.h b/include/rdma/ib_pack.h
index 03f5217..709a533 100644
--- a/include/rdma/ib_pack.h
+++ b/include/rdma/ib_pack.h
@@ -76,6 +76,7 @@  enum {
 	IB_OPCODE_UC                                = 0x20,
 	IB_OPCODE_RD                                = 0x40,
 	IB_OPCODE_UD                                = 0x60,
+	/* per IBTA 3.1 Table 38, A10.3.2 */
 	IB_OPCODE_CNP                               = 0x80,
 
 	/* operations -- just used to define real constants */