RE: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Wan, Kaike
> On Thu, May 21, 2015 at 07:52:36AM -0600, Wan, Kaike wrote: > > > > The general format of the request and response will be the same: > > > > -- > > | netlink header | > > -- > > | Data header | > > -- > > | Data | > >

RE: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Hefty, Sean
> > #define IB_NL_DATA_TYPE_INVALID 0x > > #define IB_NL_DATA_TYPE_NAME0x0001 > > #define IB_NL_DATA_TYPE_ADDRESS_IP 0x0002 > > #define IB_NL_DATA_TYPE_ADDRESS_IP6 0x0003 > > #define IB_NL_DATA_TYPE_PATH_RECORD 0x0004 > > #def

Re: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Jason Gunthorpe
On Thu, May 21, 2015 at 03:44:40PM -0400, ira.weiny wrote: > The overall message length is in the netlink header. So keeping in mind > Jasons > comments regarding returning multiple data records. There is already an existing idiom and macro set for nesting netlink records, use it. Someone need

Re: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread ira.weiny
On Thu, May 21, 2015 at 07:52:36AM -0600, Wan, Kaike wrote: > > The general format of the request and response will be the same: > > -- > | netlink header | > -- > | Data header | > -- > | Data | > -- > >

RE: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Wan, Kaike
> > The general format of the request and response will be the same: > > > > | netlink header | > > | Data header | > > | Data | > > > > The data header contains information about the type of > > request/response, the status (for response), the type (format) of the > > data, the

Re: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Jason Gunthorpe
On Thu, May 21, 2015 at 01:52:36PM +, Wan, Kaike wrote: > > In our previous posting to the mailing list, we proposed to send a MAD > request from kernel (more > specifically, from ib_sa module) to a user space application (ibacm in this > case) through netlink. > The user space application w

RE: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Wan, Kaike
> On Thu, 2015-05-21 at 13:21 -0400, Doug Ledford wrote: > > The one thing I left out of the above that might be worth changing is the fact > that you bury your sequence number down in your mad header. If there is a > generic mechanism that multiple modules can use to send customized data > via n

RE: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Wan, Kaike
> On Thu, 2015-05-21 at 13:52 +, Wan, Kaike wrote: > > In our previous posting to the mailing list, we proposed to send a MAD > > request from kernel (more specifically, from ib_sa module) to a user space > application (ibacm in this case) through netlink. > > The user space application will s

Re: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Doug Ledford
On Thu, 2015-05-21 at 13:21 -0400, Doug Ledford wrote: > On Thu, 2015-05-21 at 13:52 +, Wan, Kaike wrote: > > In our previous posting to the mailing list, we proposed to send a MAD > > request from kernel (more > > specifically, from ib_sa module) to a user space application (ibacm in this >

Re: [RFC] IB/sa: Route SA pathrecord query through netlink

2015-05-21 Thread Doug Ledford
On Thu, 2015-05-21 at 13:52 +, Wan, Kaike wrote: > In our previous posting to the mailing list, we proposed to send a MAD > request from kernel (more > specifically, from ib_sa module) to a user space application (ibacm in this > case) through netlink. > The user space application will send b