-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using SKB headroom for SsSkbCb #166
Comments
Ilya, thank you for the interesting question. We need valid SsSkbCb list members also during skb (re-)transmission, so we can't reuse part of headroom used by MAC or IP layers. However, there is NET_SKB_PAD alignment before mac_header which is typically 64 bytes in size, so it seems we can place SsSkbCb at the room. This is good thing to keep in mind for next releases. |
In fact, we don't need |
Uh, yes, indeed. However, my understanding is that the key word here is The major reason for introduction of a separate list of skbs was that Tempesta kept request's data on a list until a paired response came, and at the same time these same skbs were handed to Linux kernel's TCP/IP stack for sending. Thus, an skb could have been a member of a socket queue, and at the same time a member of a message queue. So, as soon as we started passing skb clones to the TCP/IP stack instead of the original skbs, |
Fix #166: transition to standard skb linkage inside TempstaFW.
Hello,
Is it possible to make TFW as a LKM without needing of kernel prepatching? As I see it, the patch (apart from other things) extends
skb->cb
soSsSkbCb
resides on it. But taking into account that the SKBs has some headroom groving with increasing of the OSI's layer seems that it is possible to avoid SKB'scb
area to extend.Any reasons why is it can't be implemented?
The text was updated successfully, but these errors were encountered: