RE: [PATCH 5/5] rapidio: add destination ID allocation mechanism

2012-10-04 Thread Bounine, Alexandre
On Wed, October 03, 2012 6:36 PM Andrew Morton wrote: > > On Wed, 3 Oct 2012 15:18:43 -0400 > Alexandre Bounine wrote: > > > ... > > > > +static u16 rio_destid_alloc(struct rio_net *net) > > +{ > > + int destid; > > + struct rio_id_table *idtab = &net->destid_table; > > + > > + spin_lock

Re: [PATCH 5/5] rapidio: add destination ID allocation mechanism

2012-10-03 Thread Andrew Morton
On Wed, 3 Oct 2012 15:18:43 -0400 Alexandre Bounine wrote: > Replace the single global destination ID counter with per-net allocation > mechanism to allow independent destID management for each available RapidIO > network. Using bitmap based mechanism instead of counters allows > destination ID