* [PATCH] rdma_cm.h: Fix SCTP protocol ID
@ 2010-01-13 19:24 Hal Rosenstock
[not found] ` <20100113192454.GA17655-Wuw85uim5zDR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Hal Rosenstock @ 2010-01-13 19:24 UTC (permalink / raw)
To: sean.hefty-ral2JQCrhuEAvxtiuMwx3w, rolandd-FYB4Gu1CFyUAvxtiuMwx3w
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Should be 132 rather than 131 according to IANA IP protocol IDs
Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h
index c6b2962..1c5e589 100644
--- a/include/rdma/rdma_cm.h
+++ b/include/rdma/rdma_cm.h
@@ -67,7 +67,7 @@ enum rdma_port_space {
RDMA_PS_IPOIB = 0x0002,
RDMA_PS_TCP = 0x0106,
RDMA_PS_UDP = 0x0111,
- RDMA_PS_SCTP = 0x0183
+ RDMA_PS_SCTP = 0x0184
};
struct rdma_addr {
--
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 related [flat|nested] 6+ messages in thread[parent not found: <20100113192454.GA17655-Wuw85uim5zDR7s880joybQ@public.gmane.org>]
* RE: [PATCH] rdma_cm.h: Fix SCTP protocol ID [not found] ` <20100113192454.GA17655-Wuw85uim5zDR7s880joybQ@public.gmane.org> @ 2010-01-13 19:51 ` Sean Hefty 2010-01-13 21:04 ` Roland Dreier 1 sibling, 0 replies; 6+ messages in thread From: Sean Hefty @ 2010-01-13 19:51 UTC (permalink / raw) To: 'Hal Rosenstock', rolandd-FYB4Gu1CFyUAvxtiuMwx3w Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA >Should be 132 rather than 131 according to IANA IP protocol IDs > >Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Acked-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> >--- Thanks. I just noticed this this morning after reviewing the luster patches. You beat me to the patch. >diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h >index c6b2962..1c5e589 100644 >--- a/include/rdma/rdma_cm.h >+++ b/include/rdma/rdma_cm.h >@@ -67,7 +67,7 @@ enum rdma_port_space { > RDMA_PS_IPOIB = 0x0002, > RDMA_PS_TCP = 0x0106, > RDMA_PS_UDP = 0x0111, >- RDMA_PS_SCTP = 0x0183 >+ RDMA_PS_SCTP = 0x0184 > }; > > struct rdma_addr { -- 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] 6+ messages in thread
* Re: [PATCH] rdma_cm.h: Fix SCTP protocol ID [not found] ` <20100113192454.GA17655-Wuw85uim5zDR7s880joybQ@public.gmane.org> 2010-01-13 19:51 ` Sean Hefty @ 2010-01-13 21:04 ` Roland Dreier [not found] ` <adaska9n2d3.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org> 1 sibling, 1 reply; 6+ messages in thread From: Roland Dreier @ 2010-01-13 21:04 UTC (permalink / raw) To: Hal Rosenstock Cc: sean.hefty-ral2JQCrhuEAvxtiuMwx3w, rolandd-FYB4Gu1CFyUAvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA > - RDMA_PS_SCTP = 0x0183 > + RDMA_PS_SCTP = 0x0184 The old wrong value has been there since we first merged this. So changing it means anything using this in userspace would be broken. But is PS_SCTP exported to userspace? And as far as I can tell PS_SCTP is not implemented (this line is the only reference to RDMA_PS_SCTP in the whole kernel). So would it make more sense to delete this enum value entirely? -- 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] 6+ messages in thread
[parent not found: <adaska9n2d3.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>]
* RE: [PATCH] rdma_cm.h: Fix SCTP protocol ID [not found] ` <adaska9n2d3.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org> @ 2010-01-13 21:11 ` Sean Hefty [not found] ` <7E10F17E68C24836BE68F8F22B64862B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Sean Hefty @ 2010-01-13 21:11 UTC (permalink / raw) To: 'Roland Dreier', Hal Rosenstock Cc: rolandd-FYB4Gu1CFyUAvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA >The old wrong value has been there since we first merged this. So >changing it means anything using this in userspace would be broken. But >is PS_SCTP exported to userspace? And as far as I can tell PS_SCTP is >not implemented (this line is the only reference to RDMA_PS_SCTP in the >whole kernel). So would it make more sense to delete this enum value entirely? Technically, I believe it's available to userspace, though the librdmacm doesn't define it. I'd be surprised if anything uses it. -- 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] 6+ messages in thread
[parent not found: <7E10F17E68C24836BE68F8F22B64862B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH] rdma_cm.h: Fix SCTP protocol ID [not found] ` <7E10F17E68C24836BE68F8F22B64862B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org> @ 2010-01-13 21:21 ` Roland Dreier [not found] ` <adak4vln1ks.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Roland Dreier @ 2010-01-13 21:21 UTC (permalink / raw) To: Sean Hefty Cc: Hal Rosenstock, rolandd-FYB4Gu1CFyUAvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA > Technically, I believe it's available to userspace, though the librdmacm doesn't > define it. I'd be surprised if anything uses it. Wouldn't trying to use RDMA_PS_SCTP hit the default: return -EPROTONOSUPPORT; case in cma_get_port()? So one couldn't actually do anything with RDMA_PS_SCTP? Or is there some way to avoid binding? -- 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] 6+ messages in thread
[parent not found: <adak4vln1ks.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>]
* RE: [PATCH] rdma_cm.h: Fix SCTP protocol ID [not found] ` <adak4vln1ks.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org> @ 2010-01-13 21:38 ` Sean Hefty 0 siblings, 0 replies; 6+ messages in thread From: Sean Hefty @ 2010-01-13 21:38 UTC (permalink / raw) To: 'Roland Dreier' Cc: Hal Rosenstock, rolandd-FYB4Gu1CFyUAvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA >Wouldn't trying to use RDMA_PS_SCTP hit the > > default: > return -EPROTONOSUPPORT; > >case in cma_get_port()? So one couldn't actually do anything with >RDMA_PS_SCTP? Or is there some way to avoid binding? You're right. There isn't any way to actually do anything with it. All code paths go through rdma_bind_addr. -- 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] 6+ messages in thread
end of thread, other threads:[~2010-01-13 21:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 19:24 [PATCH] rdma_cm.h: Fix SCTP protocol ID Hal Rosenstock
[not found] ` <20100113192454.GA17655-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2010-01-13 19:51 ` Sean Hefty
2010-01-13 21:04 ` Roland Dreier
[not found] ` <adaska9n2d3.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-01-13 21:11 ` Sean Hefty
[not found] ` <7E10F17E68C24836BE68F8F22B64862B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2010-01-13 21:21 ` Roland Dreier
[not found] ` <adak4vln1ks.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-01-13 21:38 ` Sean Hefty
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox