From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 851611B467 for ; Mon, 14 Jan 2019 03:33:25 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jan 2019 18:33:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,475,1539673200"; d="scan'208";a="137965841" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga001.fm.intel.com with ESMTP; 13 Jan 2019 18:33:24 -0800 Received: from bgsmsx109.gar.corp.intel.com (10.223.4.211) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 13 Jan 2019 18:33:23 -0800 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.128]) by BGSMSX109.gar.corp.intel.com ([169.254.10.162]) with mapi id 14.03.0415.000; Mon, 14 Jan 2019 08:03:20 +0530 From: "Varghese, Vipin" To: "Zhang, Qi Z" , Kevin Traynor , "Wang, Haiyue" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1] net/i40e: perform basic validation on the VF messages Thread-Index: AQHUqQza/dTgqecol0WAJzUOoyeUSKWpX0CwgABVkoCABFtU4A== Date: Mon, 14 Jan 2019 02:33:20 +0000 Message-ID: <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D2F1F56@BGSMSX101.gar.corp.intel.com> References: <1547122051-26931-1-git-send-email-haiyue.wang@intel.com> <92f8ceb0-171d-f122-ad16-35eba3e9f979@redhat.com> <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D2EFBDB@BGSMSX101.gar.corp.intel.com> <039ED4275CED7440929022BC67E7061153319CE3@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <039ED4275CED7440929022BC67E7061153319CE3@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTg4MjU2MzMtZWNiOS00N2UzLWI3MzQtZjVlMmVjMDBiMjdhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQUtwclQ5NVNwRGN5SE1MMkRDQWxKMWduQVR2WWV6K3Nka0V5cDVLbzhZYTBCQVlySmtZem14a2g0VVNQRlB2bSJ9 dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v1] net/i40e: perform basic validation on the VF messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2019 02:33:26 -0000 SGksDQoNClRoYW5rcyBLZXZpbiBmb3IgcmVkaXJlY3RpbmcgdG8gdGhlIG1haW50YWluZXIuIEFw cHJlY2lhdGUgdGhlIGhlbHAuDQoNClRoYW5rcyBRaSBaIFpoYW5nIGZvciB0aGUgdXBkYXRlLiBC dXQgdGhlIHJlYXNvbiBmb3IgcmVxdWVzdCBpcyBiZWNhdXNlIEkgZGlkIG5vdCBmaW5kIHRoZSB1 cGRhdGUgaW4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