[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130904.144103.1597684778395131609.davem@davemloft.net>
Date: Wed, 04 Sep 2013 14:41:03 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: tgraf@...g.ch
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com,
hannes@...essinduktion.org, swarren@...dotorg.org,
festevam@...il.com
Subject: Re: [PATCH v2] ipv6: Don't depend on per socket memory for
neighbour discovery messages
From: Thomas Graf <tgraf@...g.ch>
Date: Tue, 3 Sep 2013 13:37:01 +0200
> Allocating skbs when sending out neighbour discovery messages
> currently uses sock_alloc_send_skb() based on a per net namespace
> socket and thus share a socket wmem buffer space.
>
> If a netdevice is temporarily unable to transmit due to carrier
> loss or for other reasons, the queued up ndisc messages will cosnume
> all of the wmem space and will thus prevent from any more skbs to
> be allocated even for netdevices that are able to transmit packets.
>
> The number of neighbour discovery messages sent is very limited,
> use of alloc_skb() bypasses the socket wmem buffer size enforcement
> while the manual call to skb_set_owner_w() maintains the socket
> reference needed for the IPv6 output path.
>
> This patch has orginally been posted by Eric Dumazet in a modified
> form.
>
> Signed-off-by: Thomas Graf <tgraf@...g.ch>
Applied, and queued up for -stable along with Cong Wang's ndisc_send_rs()
locking change.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists