Re: [networking-discuss] mblk extensions

2006-03-24 Thread Erik Nordmark
[Catching up on email] Sunay Tripathi wrote: The first step is to understand why M_CTL is bad. Mostly to do with overload, performance and code cleanliness/readability. Code paths which don't care about the content of the M_CTL have to deal with it causing performance and cleanliness impact an

Re: [networking-discuss] mblk extensions

2006-03-18 Thread Paul Durrant
On 18 Mar 2006, at 01:41, Alexander Kolbasov wrote: It was like that before a new STREAMS message allocator was introduced in 1996 (as bug 1241255). The old code had to deal with issues introduced by dupb/pullupmsg/freeb. Here is a comment from the bug report: Interesting. I was not aware of

Re: [networking-discuss] mblk extensions

2006-03-17 Thread Alexander Kolbasov
> "Paul" == Paul Durrant <[EMAIL PROTECTED]> writes: Paul> Actually, I often wondered whether the current mblk_t/dblk_t layout Paul> hurts the OS anyway. I often wondered whether, in code scanning large Paul> numbers of relatively small (sub-page) STREAMS messages it made sense Paul> t

Re: [networking-discuss] mblk extensions

2006-03-17 Thread Paul Durrant
> > Why not flesh out M_MULTIDATA further? It has a nice programming API, and > already has support for attributes. > M_MULTIDATA messages are not what I'd call *real* STREAMs messages anyway since you cannot use all the standard message manipulation functions on them. If the network stack goes d

Re: [networking-discuss] mblk extensions

2006-03-17 Thread Paul Durrant
On 3/16/06, Sunay Tripathi <[EMAIL PROTECTED]> wrote: > Plus do we allocate > a mblk with space for each possible attribute type or do we do lazy > allocate etc etc. > Actually, I often wondered whether the current mblk_t/dblk_t layout hurts the OS anyway. I often wondered whether, in code scannin

re: [networking-discuss] mblk extensions

2006-03-16 Thread peter.memishian
> So sort this out, any mechanism that requires prepending stuff is > probably not the best. Also adding the constraints that mblks are in > use by loads of things and is exposed externally for decades, you need > to maintain backward compatibility as well. One such idea that we have > kicked

[networking-discuss] mblk extensions

2006-03-15 Thread Sunay Tripathi
We started discussing this but this might be of wider interest .. > Dan McDonald wrote: > > > ... > > > > - de-STREAMS-ing IPsec (aka. BigAjax) --> Part of this would be > > examining M_CTLs and finding a better way. (I wonder if PEF will > > end up doing part of this anyway?)