Re: [PATCH rdma-next v3-v6] Add OPA extended LID support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 14, 2017 at 01:12:34PM -0700, Don Hiatt wrote:
> On 8/14/2017 11:36 AM, Don Hiatt wrote:
> >
> >
> > On 8/14/2017 11:17 AM, Don Hiatt wrote:
> > > This patch series primarily increases sizes of variables that hold
> > > lid values from 16 to 32 bits. Additionally, it adds a check in
> > > the IB mad stack to verify a properly formatted MAD when OPA
> > > extended LIDs are used.
> > >
> > > Signed-off-by: Don Hiatt <don.hiatt@xxxxxxxxx>
> > > Reviewed-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx>
> > > ---
> > >
> > > This is an incremental patch to move from v3 of the 'Add OPA
> > > extended LID support' to v6 of the series.
> > > Changes from v5:
> > > ---------------
> > > * Fixed typo in WARN_ON_ONCE usage in helper functions.
> > > * Actually return be16 in ib_lid_be16() helper function.
> >
> > Sorry, this was meant to go to my email as a test, not to the list. My
> > tests are still running so please
> > hold off on this until I confirm.
> >
> All test completed fine. I think we're good to go.
>
> Leon, if I missed anything else please let me know.

Yeah, you should fix the function below too.
The whole extended LID series did enormous mess with all these lid/slid/dlid.

 88 static inline bool opa_is_extended_lid(u32 dlid, u32 slid)
 89 {
 90         if ((be32_to_cpu(dlid) >=
 91              be16_to_cpu(IB_MULTICAST_LID_BASE)) ||
 92             (be32_to_cpu(slid) >=
 93              be16_to_cpu(IB_MULTICAST_LID_BASE)))
 94                 return true;
 95         else
 96                 return false;
 97 }

It will help a lot, if you break this patch to small steps:
1. Fix existing annotation errors.
2. Change (rename) the ib_lid/ib_slid functions.
3. Add WARN_ON.

Right now, we have potential breakage of compatibility between
big-endian vs. little-endian systems.

Please run smatch and sparse checkers before LID patches and after to
know what else you should fix.

Thanks

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux