RE: [PATCH v7 4/4] IB/sa: Route SA pathrecord query through netlink

2015-07-08 Thread Wan, Kaike
-Original Message- From: Jason Gunthorpe [mailto:jguntho...@obsidianresearch.com] Sent: Friday, July 03, 2015 5:38 PM To: Wan, Kaike Cc: linux-rdma@vger.kernel.org; Fleck, John; Weiny, Ira Subject: Re: [PATCH v7 4/4] IB/sa: Route SA pathrecord query through netlink On Tue, Jun 30

Re: [PATCH v7 4/4] IB/sa: Route SA pathrecord query through netlink

2015-07-03 Thread Jason Gunthorpe
On Tue, Jun 30, 2015 at 09:45:55AM -0400, kaike@intel.com wrote: I still think this is long and rambly, but that is mostly a style preference, I think you should look at it and remove some of the left over stuff, like we really don't need a rough in for other responses at this point.

RE: [PATCH v7 4/4] IB/sa: Route SA pathrecord query through netlink

2015-07-01 Thread Wan, Kaike
From: Jason Gunthorpe [mailto:jguntho...@obsidianresearch.com] Sent: Tuesday, June 30, 2015 6:25 PM To: Wan, Kaike Cc: linux-rdma@vger.kernel.org; Fleck, John; Weiny, Ira Subject: Re: [PATCH v7 4/4] IB/sa: Route SA pathrecord query through netlink On Tue, Jun 30, 2015 at 09:45:55AM -0400

Re: [PATCH v7 4/4] IB/sa: Route SA pathrecord query through netlink

2015-06-30 Thread Jason Gunthorpe
On Tue, Jun 30, 2015 at 09:45:55AM -0400, kaike@intel.com wrote: +static inline int ib_nl_is_good_resolve_resp(const struct nlmsghdr *nlh) +{ + const struct nlattr *head, *curr; + int len, rem; + + if (nlh-nlmsg_flags RDMA_NL_LS_F_ERR) + return 0; + + if