[Devel] Re: [PATCH 3/4] Update the UNIX buffer restore code to match the new format saved in the image file
Serge E. Hallyn
serue at us.ibm.com
Wed Nov 11 13:38:51 PST 2009
Quoting Dan Smith (danms at us.ibm.com):
> /* Make sure there's room in the send buffer */
> sndbuf = sk->sk_sndbuf;
> - if (((sk->sk_sndbuf - atomic_read(&sk->sk_wmem_alloc)) < len) &&
> + if (((sk->sk_sndbuf - atomic_read(&sk->sk_wmem_alloc)) < h->lin_len) &&
> capable(CAP_NET_ADMIN))
> - sk->sk_sndbuf += len;
> + sk->sk_sndbuf += h->lin_len;
> else
> sk->sk_sndbuf = sysctl_wmem_max;
Can you explain what's going on here? 'if the size of the send buffer
minus tranmit queue bytes committed is less than linear length,
then if you're privileged you add h->len to sk->sk_sndbuf, but if
either you're not privileged or the length was greater than linear
length, then you add sysctl_wmem_max.' ?
I realize that's a question on the original code, not on this
patch...
-serge
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list