Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5791363imm; Tue, 12 Jun 2018 13:26:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLR5I00g4RZHkGC++dA0CG1LV+1ypGLGqvSeCmv6LQFeh+N/Afn0h0y3uW8uAmpuWpQQxau X-Received: by 2002:a62:d508:: with SMTP id d8-v6mr1938728pfg.128.1528835206235; Tue, 12 Jun 2018 13:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528835206; cv=none; d=google.com; s=arc-20160816; b=QzknFrM/5eoIsvasfnQ4c7ux2N0Ry6bWE0v1tpMiSEI+0rpyI7oh8HG0IhIePpSVv5 /tyCPPPyhlKwgAaF023YB7gRpZpsmbFDDqC1Rm9yp0LAWOxLFCwUnBeTQGuxed2b9PkO 9WD3xJ8ctPgjI2oLyOMEw/5nN11BNgdDZScjFJVzOOc5jovlLZz1PW1ONofPYDHYoCBy jJzb7QQiHb/yWSS7zypPV/eeZU5RqO+57ZrH9JlY8QTqTzj0Vn/vP1OK7U6ssW9eR7D4 6xpamrsIOZQOwvlu+Ajx2qGxzQ7yU1xhTafTKqNKPILewmnXreRDt3KH1uTZQVRSFz3L 4Aow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:arc-authentication-results; bh=vWATGLUbplJbB05HkiYPMuosqla1F/wpgBTvX4AkeSg=; b=W4ezQc67+PGsxxOAkm7oHge7WQibbCmekBAn9n/ZkBO4B/l3nvqi7lGX76C8ZAnbDr kZOv9A7VMj9Y6nFwqg5EYS8VtTvJiSYIbgnWuus8RKTCGasVlgtZIly/cHPEudO3ZUZm sIUh6Ro0KuzqE/daxuEyUBPgcOeW1sWLcbKE4e2nntSW1ZyjKkrrRzIheMfR+hb0CZW8 SW08yF0AZ9GjPZqvb4Hkatb70skC51ehYBdLv4HE8b2JErfvbwiIckIVzeUlRHIKCFec lFoFGbneCplycUG6BTu2WbDjzw0w1dvuxtfKJSRn4uAke38MQVAdZQyWkQhhOFGVvRPN Vg4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si737188pga.219.2018.06.12.13.26.30; Tue, 12 Jun 2018 13:26:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754375AbeFLUZB (ORCPT + 99 others); Tue, 12 Jun 2018 16:25:01 -0400 Received: from www62.your-server.de ([213.133.104.62]:37764 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754260AbeFLUZA (ORCPT ); Tue, 12 Jun 2018 16:25:00 -0400 Received: from [178.197.248.16] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1fSpqW-0005Oh-KU; Tue, 12 Jun 2018 22:24:52 +0200 Subject: Re: [BUG] cc5b114dcf bpf, i40e: add meta data support To: Keith Busch , intel-gfx@lists.freedesktop.org, John Fastabend , Jeff Kirsher , linux-kernel@vger.kernel.org References: <20180612161739.GA3303@localhost.localdomain> From: Daniel Borkmann Message-ID: Date: Tue, 12 Jun 2018 22:24:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180612161739.GA3303@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.3/24656/Tue Jun 12 14:35:50 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/12/2018 06:17 PM, Keith Busch wrote: > My server's i40e no longer obtains an IP address on linux > mainline. Bisected to the following: > > commit cc5b114dcf986bfd8e4c37bf65d1b7b1e5290ac6 > Author: Daniel Borkmann > Date: Mon May 28 11:07:20 2018 +0200 > > bpf, i40e: add meta data support > > Reverting on mainline resolves the issue. > > Is there something wrong with my i40e adapter, or is the patch possibly > doing something wrong? Or any other information I can get to help > understand why it's stopped working with this feature? > > An excert from "journalctl -xe" on on the failing network adapter > is below. Thanks for the report & sorry for the issue, Keith! Instead of revert, could you give the below fix a try? diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c index 8ffb745..ed6dbcf 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c +++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c @@ -2103,9 +2103,8 @@ static struct sk_buff *i40e_build_skb(struct i40e_ring *rx_ring, unsigned int truesize = i40e_rx_pg_size(rx_ring) / 2; #else unsigned int truesize = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) + - SKB_DATA_ALIGN(I40E_SKB_PAD + - (xdp->data_end - - xdp->data_hard_start)); + SKB_DATA_ALIGN(xdp->data_end - + xdp->data_hard_start); #endif struct sk_buff *skb; @@ -2124,7 +2123,7 @@ static struct sk_buff *i40e_build_skb(struct i40e_ring *rx_ring, return NULL; /* update pointers within the skb to store the data */ - skb_reserve(skb, I40E_SKB_PAD + (xdp->data - xdp->data_hard_start)); + skb_reserve(skb, xdp->data - xdp->data_hard_start); __skb_put(skb, xdp->data_end - xdp->data); if (metasize) skb_metadata_set(skb, metasize); Thanks, Daniel