From: Hideo AOKI <[EMAIL PROTECTED]> Date: Mon, 17 Dec 2007 21:38:47 -0500
> This patch adds UDP memory usage accounting in IPv4. > > Send buffer accounting is performed by IP layer, because skbuff is > allocated in the layer. > > Receive buffer is charged, when the buffer successfully received. > Destructor of the buffer does uncharging and reclaiming, when the > buffer is freed. To set destructor at proper place, we use > __udp_queue_rcv_skb() instead of sock_queue_rcv_skb(). To maintain > consistency of memory accounting, socket lock is used to free receive > buffer in udp_recvmsg(). > > New packet will be add to backlog when the socket is used by user. > > Cc: Satoshi Oshima <[EMAIL PROTECTED]> > signed-off-by: Takahiro Yasui <[EMAIL PROTECTED]> > signed-off-by: Masami Hiramatsu <[EMAIL PROTECTED]> > signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> We can't accept these changes, even once the other issues are fixed, until IPV6 is supported as well. It's pointless to support proper UDP memory accounting only in IPV4 and not in IPV6 as well. -- 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