From patchwork Wed Oct 10 06:35:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: stephen hemminger X-Patchwork-Id: 190565 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 8CE382C0087 for ; Wed, 10 Oct 2012 17:39:49 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178Ab2JJGjs (ORCPT ); Wed, 10 Oct 2012 02:39:48 -0400 Received: from fiji.vyatta.com ([76.74.103.50]:52293 "EHLO fiji.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686Ab2JJGjX (ORCPT ); Wed, 10 Oct 2012 02:39:23 -0400 Received: by fiji.vyatta.com (Postfix, from userid 1051) id 161EA15414D; Tue, 9 Oct 2012 22:27:06 -0700 (PDT) Message-Id: <20121010063623.783001791@vyatta.com> User-Agent: quilt/0.60-1 Date: Tue, 09 Oct 2012 23:35:51 -0700 From: Stephen Hemminger To: davem@davemloft.net Cc: netdev@vger.kernel.org Subject: [PATCHv2 6/8] vxlan: add additional headroom References: <20121010063545.453368147@vyatta.com> Content-Disposition: inline; filename=vxlan-more-headroom.patch Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Tell upper layer protocols to allocate skb with additional headroom. This avoids allocation and copy in local packet sends. Signed-off-by: Stephen Hemminger --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/net/vxlan.c 2012-10-09 18:08:35.086431755 -0700 +++ b/drivers/net/vxlan.c 2012-10-09 18:08:36.862414133 -0700 @@ -983,6 +983,7 @@ static void vxlan_setup(struct net_devic eth_hw_addr_random(dev); ether_setup(dev); + dev->hard_header_len = ETH_HLEN + VXLAN_HEADROOM; dev->netdev_ops = &vxlan_netdev_ops; dev->destructor = vxlan_free;