public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/6] Generic logging helpers
@ 2015-05-18 10:40 Sagi Grimberg
       [not found] ` <1431945633-18401-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Sagi Grimberg @ 2015-05-18 10:40 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Sagi Grimberg

This small set adds some meaningful verbosity to some
of the core/rdma_cm enumerated events. Its useful to
see the meaning of the opcodes instead of revisiting the
code for every new status/event that left the cache in
our brain.

Many thanks to all the reviewers!

Changes from v6:
- Lowered case for unrecognised event/status print
- Fixed typo in IB_WC_REM_INV_REQ_ERR string

Changes from v5:
- Changed message strings to match the xprtrdma style
- checkpatch nit

Changes from v4:
- Split up ULP changes to separate patches

Changes from v3:
- Protect against "holes" in string arrays
- Restored __attribute_const__ to functions prototype
- Made string arrays rodata

Changes from v2:
- Cast to size_t instead of unsigned
- Style fix in string arrays declaration
- Removed redundant __attribute_const__

Changes from v1:
- Changed helper names ib_wc_status_msg and rdma_event_msg
- Cast input arguments to protect string buffer access
- Add svcrdma to the party

Changes from v0 (RFC):
- Moved string arrays to .c files
- Changed string helpers from macros to exported functions
- Aligned rds to generic helpers as well

Sagi Grimberg (6):
  IB/core, cma: Nice log-friendly string helpers
  IB/srp: Align to generic logging helpers
  IB/iser: Align to generic logging helpers
  iser-target: Align to generic logging helpers
  xprtrdma, svcrdma: Switch to generic logging helpers
  RDS: Switch to generic logging helpers

 drivers/infiniband/core/cma.c            |   28 +++++++++
 drivers/infiniband/core/verbs.c          |   65 +++++++++++++++++++++
 drivers/infiniband/ulp/iser/iser_verbs.c |   28 ++++++---
 drivers/infiniband/ulp/isert/ib_isert.c  |   19 ++++--
 drivers/infiniband/ulp/srp/ib_srp.c      |   16 +++--
 include/rdma/ib_verbs.h                  |    4 +
 include/rdma/rdma_cm.h                   |    2 +
 net/rds/af_rds.c                         |    9 ---
 net/rds/ib.h                             |    1 -
 net/rds/ib_cm.c                          |   36 +-----------
 net/rds/ib_recv.c                        |    4 +-
 net/rds/ib_send.c                        |   38 +------------
 net/rds/rdma_transport.c                 |   34 +----------
 net/rds/rds.h                            |    1 -
 net/sunrpc/xprtrdma/frwr_ops.c           |    4 +-
 net/sunrpc/xprtrdma/svc_rdma_transport.c |   29 ++++++----
 net/sunrpc/xprtrdma/verbs.c              |   90 ++----------------------------
 17 files changed, 174 insertions(+), 234 deletions(-)

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-06-08 16:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18 10:40 [PATCH v7 0/6] Generic logging helpers Sagi Grimberg
     [not found] ` <1431945633-18401-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-05-18 10:40   ` [PATCH v7 1/6] IB/core, cma: Nice log-friendly string helpers Sagi Grimberg
     [not found]     ` <1431945633-18401-2-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-05-18 16:25       ` Hefty, Sean
     [not found]         ` <1828884A29C6694DAF28B7E6B8A82373A8FDC8A8-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-05-18 18:39           ` Sagi Grimberg
2015-05-18 10:40   ` [PATCH v7 2/6] IB/srp: Align to generic logging helpers Sagi Grimberg
2015-05-18 10:40   ` [PATCH v7 3/6] IB/iser: " Sagi Grimberg
2015-05-18 10:40   ` [PATCH v7 4/6] iser-target: " Sagi Grimberg
2015-05-18 10:40   ` [PATCH v7 5/6] xprtrdma, svcrdma: Switch " Sagi Grimberg
     [not found]     ` <1431945633-18401-6-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-06-07  6:00       ` ira.weiny
     [not found]         ` <20150607060010.GA26768-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2015-06-08  8:15           ` Sagi Grimberg
     [not found]             ` <55754F08.7000201-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-06-08 16:00               ` ira. weiny
2015-05-18 10:40   ` [PATCH v7 6/6] RDS: " Sagi Grimberg
2015-06-07  6:03   ` [PATCH v7 0/6] Generic " ira.weiny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox