From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-next 6/6] IB/IPoIB: Support acceleration options callbacks Date: Tue, 4 Apr 2017 13:42:34 -0600 Message-ID: <20170404194234.GB10780@obsidianresearch.com> References: <20170404191732.31895-1-leon@kernel.org> <20170404191732.31895-7-leon@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20170404191732.31895-7-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Leon Romanovsky Cc: Doug Ledford , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Niranjana Vishwanathapura , Alex Vesker , Erez Shitrit List-Id: linux-rdma@vger.kernel.org On Tue, Apr 04, 2017 at 10:17:32PM +0300, Leon Romanovsky wrote: > -/* Keep the refactoring compile able */ > -#define ipoib_priv netdev_priv > +static inline void *ipoib_priv(const struct net_device *dev) > +{ > + struct rdma_netdev *rn = netdev_priv(dev); > + > + return rn->clnt_priv; > +} This should return struct ipoib_dev_priv * > static ssize_t show_pkey(struct device *dev, > struct device_attribute *attr, char *buf) > { > - struct ipoib_dev_priv *priv = netdev_priv(to_net_dev(dev)); > + struct ipoib_dev_priv *priv = ipoib_priv(to_net_dev(dev)); Several of these seem to be in the wrong patch Jason -- 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