Garrett D'Amore wrote:
Rao Shoaib wrote:
We are planning to increase the size of mblk by 4 bytes. This will make the size to be 64bytes in 64bit and 36 bytes in 32bit mode. Since all modern CPU's have an L2 cache line size of 64 we do not see any issues with this change. Please let us know if you see any issues with thi change.

What are you adding to the mblk_t?
We simply want to add a flag. For direct sockets we have a need to get "synchronous access" to squeues. However see below

I have been contemplating adding a few things (about 17 bits worth of data) to either struct msgb or to struct datab.

Btw, I'm concerned about code that may have (erroneously) declared mblk_t as an automatic variable somewhere. It would be a bad choice, and not DDI compliant code, but I think some regression testing might be in order.
Michael Schuster sent me a private email confirming that we will be adding new fields to the end of the structure. That was not our plan because currently mblk_t has 4 bytes un-used in 64bit mode and we wanted to use those. However these bytes are not available in 32 bit mode. Which means the offest of b_queue will change in 32 bit mode. I don't think we can do that since some pre-compiled drivers will not work. So we need to find another place to add the flag or use b_tag as we are doing curently.

Rao.

   -- Garrett


Thanks,

Rao.

P.S. Once we have actually made the change we will obviously run benchmarks to verify that there is no performance degradation.
_______________________________________________
networking-discuss mailing list
[email protected]

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to