Re: [PATCH for bnxt_re V4 03/21] RDMA/bnxt_re: register with the NIC driver

2017-02-10 Thread Selvin Xavier
On Tue, Feb 7, 2017 at 1:56 AM, Doug Ledford wrote: >> +static void bnxt_re_dev_remove(struct bnxt_re_dev *rdev) >> +{ >> + int i = BNXT_RE_REF_WAIT_COUNT; >> + >> + /* Wait for rdev refcount to come down */ >> + while ((atomic_read(&rdev->ref_count) > 1) && i--) >> +

Re: [PATCH for bnxt_re V4 03/21] RDMA/bnxt_re: register with the NIC driver

2017-02-06 Thread Doug Ledford
On Wed, 2016-12-21 at 03:41 -0800, Selvin Xavier wrote: > +static void bnxt_re_dev_remove(struct bnxt_re_dev *rdev) > +{ > +   int i = BNXT_RE_REF_WAIT_COUNT; > + > +   /* Wait for rdev refcount to come down */ > +   while ((atomic_read(&rdev->ref_count) > 1) && i--) > +   m

Re: [PATCH for bnxt_re V4 03/21] RDMA/bnxt_re: register with the NIC driver

2017-01-18 Thread Leon Romanovsky
On Wed, Dec 21, 2016 at 03:41:52AM -0800, Selvin Xavier wrote: > This patch handles the registration with the bnxt_en driver. > The bnxt_re driver first registers with netdev notifier chain and upon > receiving the NETDEV_REGISTER event, it registers with bnxt_en driver. > > 1. bnxt_en's ulp_

[PATCH for bnxt_re V4 03/21] RDMA/bnxt_re: register with the NIC driver

2016-12-21 Thread Selvin Xavier
This patch handles the registration with the bnxt_en driver. The bnxt_re driver first registers with netdev notifier chain and upon receiving the NETDEV_REGISTER event, it registers with bnxt_en driver. 1. bnxt_en's ulp_probe function returns a structure that contains informatio