Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1216938imu; Wed, 28 Nov 2018 06:25:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/U12LuJSTQ6i3ta4pbtJ4uF33quhnsMg04lh7DqcFLZPdQbk4wVpkutl/6S166OZmdKrFni X-Received: by 2002:a17:902:541:: with SMTP id 59mr29366899plf.88.1543415118322; Wed, 28 Nov 2018 06:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543415118; cv=none; d=google.com; s=arc-20160816; b=rWTZSxq9CF3vB5fPmc+N6W4HnNLq0hFpjssGyX4sszrGsK4Ts7tIVrm2oyc7rMLn+c izb7MoLc+eMW1jr0uAocpz90Hs4RrDTIJzLJ9IEanCxxHq02t8+WgIDGpiE47gMXwhmf mJCrwYAZEGBO2APm7PNNd8rIDYtrtkRNKepOrv7plvw4S23yBUk3SbiT+fxBFzavXfbX W/lfoJY30JuVnqb+hNhFdYHM7TWuAINJGs3q3f+Ufja0LcKyLi/objeewVGj35Ws/r1L mrvTeOHvAMI+62lebkNBM8lNEmvG5S/cOlC+eY3J4zxPtz5ytt7vDzz057Fn4cc8LfpZ KKHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=x+LfO1P/fvYf9ucn0WLYmy5h55nqFc8TLpqjnJxzaWk=; b=sq2xN2XJPiBVPzDar1IdQJrqE5ftiHOD0iKWni2REV3O9mkEv2ZvBLNIwZp8V/oo+U LyW4OIhTcGGJvR1YayCU3HYAn8/3iwHUAQPfOkusfLv8P9hkbbWF6d+fCgMHuAoHexd/ Hu7iqThpogE6TCNkM6ZeFZnl1QqzY6R/nr/pziBzU/xIzI5m5hssyCsC7zP6SO4koiED Ve7N5nx1NEyrigOX7XCG9MbvKjyujCSWdC5oSeU3KwHxMgxDKsfsEEgexu/KF60vYZ5k jCAZgeGwYJCTRcTTji8lwhoWLa75vFv5ASfGmOumTj5KQuaXRU3yxwmzSGPwgA7N7cTi YwvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=iasqj1dA; 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 1si7519349plo.195.2018.11.28.06.25.02; Wed, 28 Nov 2018 06:25:18 -0800 (PST) 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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=iasqj1dA; 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 S1728756AbeK2BZr (ORCPT + 99 others); Wed, 28 Nov 2018 20:25:47 -0500 Received: from mail-eopbgr800085.outbound.protection.outlook.com ([40.107.80.85]:37184 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727832AbeK2BZr (ORCPT ); Wed, 28 Nov 2018 20:25:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x+LfO1P/fvYf9ucn0WLYmy5h55nqFc8TLpqjnJxzaWk=; b=iasqj1dAYD0BiMvsEXk0krEq7/uWGvi7LEhyQzPMNfdSzbtZiqGTc2Eljhj8od+vonf1JrAI8WKeQ51LNZ7K9253h2UmsJhRI7a7DbkdD88AMOUlae03PvDDnKQ+KWJ/+UCkJYeuElR/BImIJ1f7ZlbwCLPXG2eksuQEo+xniv8= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB2557.namprd12.prod.outlook.com (52.132.197.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.18; Wed, 28 Nov 2018 14:23:49 +0000 Received: from SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::bc0e:7f7f:ee65:e2d5]) by SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::bc0e:7f7f:ee65:e2d5%6]) with mapi id 15.20.1361.019; Wed, 28 Nov 2018 14:23:49 +0000 From: "Lendacky, Thomas" To: Pan Bian , "David S. Miller" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH V2] amd-xgbe: set skb to NULL after freeing it Thread-Topic: [PATCH V2] amd-xgbe: set skb to NULL after freeing it Thread-Index: AQHUhvmj7eiN0hl8Y0Wq5w2VcYNNK6VlPf+A Date: Wed, 28 Nov 2018 14:23:48 +0000 Message-ID: <49bcee7c-9c8e-33af-4cea-6f76c6f00349@amd.com> References: <1543395975-25339-1-git-send-email-bianpan2016@163.com> In-Reply-To: <1543395975-25339-1-git-send-email-bianpan2016@163.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR0102CA0018.prod.exchangelabs.com (2603:10b6:805:1::31) To SN1PR12MB0175.namprd12.prod.outlook.com (2a01:111:e400:5143::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN1PR12MB2557;20:HD9cp+REpqFTAt3io1vY8GlBu/R3LBkaDHfPsvTRWjR0Qez8ETn+fK+jsm54nKEYEOoZx5okA26aq/YtlYsJPGF1K7w+8siUoj0khYYd/4vITtlogFRJpKyp0IYx1Szr8iMlOSTBZSvVVU879r/6CAkAxwj8PX5wjFe0MXViC9/hO4ZojWalM6ZIZ1IGt+ZLfJ3nWMGzQjd9aFNBD9+gyX8Ij27R3281sqBnhh8Z4JW2SSE0Yuo85GuyUtQipXXX x-ms-office365-filtering-correlation-id: b3e9419e-fb64-42fa-a510-08d6553d1cd1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB2557; x-ms-traffictypediagnostic: SN1PR12MB2557: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231443)(999002)(944501410)(52105112)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB2557;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB2557; x-forefront-prvs: 0870212862 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(136003)(396003)(376002)(346002)(199004)(189003)(6116002)(3846002)(2906002)(81156014)(81166006)(31686004)(68736007)(256004)(305945005)(229853002)(8936002)(36756003)(8676002)(25786009)(478600001)(86362001)(72206003)(105586002)(71200400001)(71190400001)(106356001)(6436002)(14454004)(186003)(26005)(5660300001)(31696002)(6486002)(486006)(99286004)(2616005)(476003)(54906003)(11346002)(446003)(110136005)(6512007)(4326008)(66066001)(102836004)(386003)(6506007)(53546011)(76176011)(7736002)(52116002)(53936002)(316002)(97736004)(6246003);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB2557;H:SN1PR12MB0175.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: fFBzSnbXpcbjjQ0sjmRumJCnhMjHg7j5VYpQNP1akQkzMYtK5C2w73GFAidznC4z2HzUekKExi+3v0wNADcv7eWRbnSkkctD51IPK4M1kxg05mghxKYnWAEmfdksezJfYBzJO4Gq5wFEIhh5D1RZTX0Z/dMzNC/4UXjc/3HADmK1diFI+xCpmgQMjtgpp/MMMvn6G/ooQDPpAJ41WE2/oPcfzzNn4egBopE2sAjCUCoZxbydBIFxIOU1w+9ikno1eOKSKHu9YFHESVIs1bwY+bzn2lQ3aZyTIXKzKcV2epZa+l8yterLzDsbngjjgLyS102vYMWaca5dUif/KH8fUF0Qd3lrWYmqyk7UzRfCSHE= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <8550D3FD1783FB40A7AF3C38113A9ABC@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3e9419e-fb64-42fa-a510-08d6553d1cd1 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2018 14:23:49.0621 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2557 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTEvMjgvMjAxOCAwMzowNiBBTSwgUGFuIEJpYW4gd3JvdGU6DQo+IFRoZSBidWZmZXIgc2ti I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