[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <OF0B8CEFF8.C94A266F-ON85257B81.004D331F-85257B81.004D7015@us.ibm.com>
Date: Wed, 5 Jun 2013 10:05:51 -0400
From: David Stevens <dlstevens@...ibm.com>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org, netdev-owner@...r.kernel.org
Subject: Re: [PATCH net-next 02/10] vxlan: handle skb_clone failure
netdev-owner@...r.kernel.org wrote on 06/05/2013 02:59:56 AM:
> From: Cong Wang <xiyou.wangcong@...il.com>
> To: netdev@...r.kernel.org
> Date: 06/05/2013 03:00 AM
> Subject: Re: [PATCH net-next 02/10] vxlan: handle skb_clone failure
> Sent by: netdev-owner@...r.kernel.org
>
> On Wed, 05 Jun 2013 at 04:24 GMT, Stephen Hemminger
> <stephen@...workplumber.org> wrote:
> > skb1 = skb_clone(skb, GFP_ATOMIC);
> > - rc1 = vxlan_xmit_one(skb1, dev, rdst, did_rsc);
> > - if (rc == NETDEV_TX_OK)
> > - rc = rc1;
> > + if (skb1) {
> > + rc1 = vxlan_xmit_one(skb1, dev, rdst, did_rsc);
> > + if (rc == NETDEV_TX_OK)
> > + rc = rc1;
> > + }
>
> If OOM, shouldn't we exit immediately instead of continue handle the
> next one?
It could be a temporary condition; trying again doesn't really hurt,
in case some do go through. So, I prefer this, but could live with
bailing for all destinations, too.
+-DLS
--
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