On Mon, 2017-03-20 at 17:26 -0700, Dennis Dalessandro wrote: > > #ifdef CONFIG_FAULT_INJECTION > + debugfs_create_bool("fault_suppress_err", 0600, > + ibd->hfi1_ibdev_dbg, > + &ibd->fault_suppress_err); > fault_init_debugfs(ibd); > #endif ... > +static u64 hfi1_fault_tx(struct rvt_qp *qp, u8 opcode, u64 pbc) > +{ > +#ifdef CONFIG_HFI1_FAULT_INJECTION ^Looks like you failed to fix this spot up > + if ((opcode & IB_OPCODE_MSP) == IB_OPCODE_MSP) > + /* > + * In order to drop non-IB traffic we > + * set PbcInsertHrc to NONE (0x2). > + * The packet will still be delivered > + * to the receiving node but a > + * KHdrHCRCErr (KDETH packet with a bad > + * HCRC) will be triggered and the > + * packet will not be delivered to the > + * correct context. > + */ > + pbc |= (u64)PBC_IHCRC_NONE << PBC_INSERT_HCRC_SHIFT; > + else > + /* > + * In order to drop regular verbs > + * traffic we set the PbcTestEbp > + * flag. The packet will still be > + * delivered to the receiving node but > + * a 'late ebp error' will be > + * triggered and will be dropped. > + */ > + pbc |= PBC_TEST_EBP; > +#endif > + return pbc; > +} > + -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html