[ofa-general] question about using in_words in ib_uverbs_write()

Sean Hefty sean.hefty at intel.com
Thu Nov 8 12:31:02 PST 2007


At the end of ib_uverbs_write():

return uverbs_cmd_table[hdr.command](file, buf + sizeof hdr,
					     hdr.in_words * 4, hdr.out_words *
4);

Since buf is adjusted by sizeof hdr, should hdr.in_words * 4 also be adjusted by
- sizeof hdr?

This is just a question based on looking at the code, and not in response to any
seen problem.  (I doubt this would cause any real harm anywhere.)

- Sean



More information about the general mailing list