> > - if (WARN_ON(vl > 8))
> > - return NULL;
> > + /* NOTE This should only happen if SC->VL changed after the initial
> > +* checks on the QP/AH
> > +* Default will return engine 0 below
> > +*/
> > + if (unlikely(vl >= num_vls)) {
>
> Can you prove that
From: Ira Weiny
sdma_select_engine_vl only needs to protect itself from an invalid VL.
Something higher up the stack should be warning the user when they try
to use an SL which maps to an invalid VL.
Reviewed-by: Dean Luick
Reviewed-by: Mike Marciniszyn
On Fri, Nov 06, 2015 at 08:07:05PM -0500, Jubin John wrote:
> From: Ira Weiny
>
> sdma_select_engine_vl only needs to protect itself from an invalid VL.
> Something higher up the stack should be warning the user when they try
> to use an SL which maps to an invalid VL.
>
>