public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] IB/core: introduce ib_mtu_int_to_enum
@ 2016-12-26  6:40 Ram Amrani
       [not found] ` <1482734458-32131-1-git-send-email-Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Ram Amrani @ 2016-12-26  6:40 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA
  Cc: Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA,
	Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA, Ram Amrani

As the functionality to convert the MTU from a number to enum_ib_mtu
is ubiquitous, define a dedicated function and remove the duplicated
code (first patch).
Note that the patch doesn't include ocrdma, qib and hfi1 that check
for an exact match of the int mtu and return a different default value
(or error). I leave it to them to adapt to the new function, if at all.

The second patch fixes a qedr bug using the newly introduced function.

Ram Amrani (2):
  IB/core: add the function ib_mtu_int_to_enum
  qedr: fix MTU returned from QP query

 drivers/infiniband/hw/cxgb3/iwch_provider.c | 11 +----------
 drivers/infiniband/hw/cxgb4/provider.c      | 11 +----------
 drivers/infiniband/hw/i40iw/i40iw_verbs.c   | 11 +----------
 drivers/infiniband/hw/nes/nes_verbs.c       | 12 +-----------
 drivers/infiniband/hw/qedr/verbs.c          |  2 +-
 include/rdma/ib_verbs.h                     | 15 +++++++++++++++
 6 files changed, 20 insertions(+), 42 deletions(-)

-- 
1.8.3.1

--
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] 11+ messages in thread

end of thread, other threads:[~2017-01-24 20:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-26  6:40 [PATCH 0/2] IB/core: introduce ib_mtu_int_to_enum Ram Amrani
     [not found] ` <1482734458-32131-1-git-send-email-Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2016-12-26  6:40   ` [PATCH 1/2] IB/core: add the function ib_mtu_int_to_enum Ram Amrani
     [not found]     ` <1482734458-32131-2-git-send-email-Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2016-12-27  7:34       ` Leon Romanovsky
2017-01-03 16:24       ` Hefty, Sean
     [not found]         ` <1828884A29C6694DAF28B7E6B8A82373AB0CE4E4-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2017-01-04  9:17           ` Amrani, Ram
     [not found]             ` <SN1PR07MB2207C1F332D441FECD65C3F8F8610-mikhvbZlbf8TSoR2DauN2+FPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-04 17:40               ` Hefty, Sean
     [not found]                 ` <1828884A29C6694DAF28B7E6B8A82373AB0CE998-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2017-01-08 10:36                   ` Amrani, Ram
2017-01-24 20:09                   ` Doug Ledford
     [not found]                     ` <1485288560.43764.59.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-01-24 20:12                       ` Hefty, Sean
2016-12-26  6:40   ` [PATCH 2/2] qedr: fix MTU returned from QP query Ram Amrani
2017-01-24 20:10   ` [PATCH 0/2] IB/core: introduce ib_mtu_int_to_enum Doug Ledford

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