[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1446494965.23275.28.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Mon, 02 Nov 2015 12:09:25 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Haiyang Zhang <haiyangz@...rosoft.com>
Cc: David Miller <davem@...emloft.net>,
"edumazet@...gle.com" <edumazet@...gle.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
KY Srinivasan <kys@...rosoft.com>
Subject: Re: [PATCH v2 net-next] net: make skb_set_owner_w() more robust
On Mon, 2015-11-02 at 20:05 +0000, Haiyang Zhang wrote:
> Thanks for the fix!
> For some driver, like ours, this condition may not be "unlikely".
> So could you remove the "unlikely"?
No, I wont remove the unlikely.
Look, your main issue is about reallocating skbs, because of excessive
dev->needed_headroom.
An unlikely() mismatch is 1000 times less expensive, why would you
care ?
If you really care, fix your driver to not abuse skb->head to store 220
bytes of private data.
--
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