> What exactly are you trying to do with that "watch out for trailer_len"
> thing where you subtract 2 from datalen?

The danger is in chosing a datalen that just fits in a page but then
finding that it == length and so we want to add on trailer_len, bringing
the alloc back over a page.

The logic seemed simpler, if hackier, to discover this case after the
fact rather than trying to bring the length/trailer_len logic up into
the initial estimation of the datalen that will fit in a page.  It
obviously doesn't deal well with cases where datalen <= 2 :/ :/

I'm not thrilled with it, either.  I can try harder to bring it up into
the initial datalen estimation if we want to see what that would really
look like..

- z
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to