Re: [openib-general] sanity check on datapath

2006-08-14 Thread Roland Dreier
Michael> if (wr->opcode >= sizeof mthca_opcode / sizeof mthca_opcode[0]) Michael> { Michael>ret = -1; Michael>*bad_wr = wr; Michael>goto out; Michael> } Michael> in mthca on data path? Should this be put within ifdef Michael> DEBUG or something? Probabl

[openib-general] sanity check on datapath

2006-08-14 Thread Michael S. Tsirkin
Roland, do we really need code like if (wr->opcode >= sizeof mthca_opcode / sizeof mthca_opcode[0]) { ret = -1; *bad_wr = wr; goto out; } in mthca on data path? Should this be put within ifdef DEBUG or something? -- MST ___ op