Hello,<br><br>Yesterday I installed OFED-1.4.1-rc4 on a CentOS 5.3 system and started looking at the backported kernel headers. I found the following in the header file /usr/src/ofa_kernel-1.4.1/kernel_addons/backport/2.6.18-EL5.3/include/linux/scatterlist.h:<br>
<br>#define sg_init_table(a, b)<br><br>Or: sg_init_table() is defined to do nothing. I was expecting the following however:<br>
<br>
#define sg_init_table(sgl, nents) memset(sgl, 0, sizeof(*sgl) * nents);<br>
<br>The sg_init_table() function is implemented in e.g. 2.6.29 as follows:<br><br>void sg_init_table(struct scatterlist *sgl, unsigned int nents)<br>{<br> memset(sgl, 0, sizeof(*sgl) * nents);<br>#ifdef CONFIG_DEBUG_SG<br>
{<br> unsigned int i;<br> for (i = 0; i < nents; i++)<br> sgl[i].sg_magic = SG_MAGIC;<br> }<br>#endif<br> sg_mark_end(&sgl[nents - 1]);<br>
}<br><br>Does anyone know why sg_init_table() is defined such that it does nothing in the backported OFED headers ?<br><br clear="all">Bart.<br>