From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1F1D0A0547; Thu, 26 Aug 2021 11:40:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1CC640140; Thu, 26 Aug 2021 11:40:58 +0200 (CEST) Received: from m1230.mail.163.com (m12-30.163.com [220.181.12.30]) by mails.dpdk.org (Postfix) with ESMTP id EB0B44013F for ; Thu, 26 Aug 2021 11:40:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=ExTSR kczYCGtX0ZFCKjKCSyq0TqnBNYxqYR+NXtBgwk=; b=mjVtMZ1GQmueIE+qu5uHB zrJbg2qyI0Pk9C7n8lOIQNIiZU1sc0BD2z8Eo7gpdbO7dXeoSkcnmHlhstHoulTf 3uWab0J1qwm9dK7TViGBufOr+mewbF+OSrCFc65p5Tvt2jhmhfD0vhi2BnTv0Kmk zjGXqTi8C8nCQg6w2GVAkE= Received: from chenqiming_huawei$163.com ( [2408:8440:b08:cc:c4c6:5ab1:2d57:fb42] ) by ajax-webmail-wmsvr214 (Coremail) ; Thu, 26 Aug 2021 17:40:54 +0800 (GMT+08:00) X-Originating-IP: [2408:8440:b08:cc:c4c6:5ab1:2d57:fb42] Date: Thu, 26 Aug 2021 17:40:54 +0800 (GMT+08:00) From: "Qiming Chen" To: "beilei.xing" , "dev@dpdk.org" X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210622(1d4788a8) MailMasterPC/4.15.1.1001_(Windows_10_20H1) Copyright (c) 2002-2021 www.mailtech.cn 163com In-Reply-To: References: <20210824085101.9142-1-chenqiming_huawei@163.com> <20210824092951.9701-1-chenqiming_huawei@163.com> MIME-Version: 1.0 Message-ID: <4f046b02.a10c.17b81d57267.Coremail.chenqiming_huawei@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: lceowABHlHSmYSdhOx0HAQ--.14284W X-CM-SenderInfo: xfkh01xlpl0w5bkxt4lhl6il2tof0z/1tbiDgX6oFXl1JLPDQACsn X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: solve the failure of vf vlan filtering X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" VGhhbmtzIHlvdXIgcmVwbHkuCgoKSSB1c2Uga2VuZXJsIFBGICsgRFBESyBWRiwgdmVyc2lvbiBp cyBmb2xsb3c6CkRQREs6IDE5LjExCktlcm5lbCBQRiBpNDBlLmtvOiAyLjcuMTIKRmlybXdhcmU6 IDYuMDEgMHg4MDAwMzRhMyAxLjE3NDcuMAoKCkkgZGlkIG5vdCB1c2UgdGVzdHBtZCB0byB0ZXN0 IHZsYW4gZmlsdGVyLCBidXQgd3JvdGUgRGVtbyBmb3IgdGVzdGluZyBiYXNlZCBvbiB0aGUgZm9s bG93aW5nIGRlcGxveW1lbnQ6CjEpIHg3MTAgbmljLCB1c2UgMiBQRnMsIGVhY2ggUEYgdmlydHVh bGl6ZXMgMSBWRgoyKSAyIHBmIGNvbm5lY3RlZCB3aXRoIGZpYmVyIG9wdGljIGNhYmxlCjMpIDIg dmYgYXJlIGhhcmQgdG8gcGFzcyB0aHJvdWdoIHRvIHRoZSBWTQo0KSBJbiB2bSwgZHBkayB0YWtl cyBvdmVyIHRoZSB2ZiBwb3J0LAo1KSBPbmUgcG9ydCBpcyB1c2VkIGFzIHRoZSBzZW5kaW5nIHBv cnQsIGFuZCB0aGUgb3RoZXI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