By the way, for SMI implementation, you may want to look ib_mad_validate_dr_smp() in mad_filter.c in my branch. Ted Wilcox spent a fair bit of time going through the real IB compliance suite and making sure that all the required checks were done. It's probably worth cribbing as much as possible rather than trying to do it independently. - R.