From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 784041B94B for ; Fri, 11 Jan 2019 03:53:38 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jan 2019 18:53:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,463,1539673200"; d="scan'208";a="310901265" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 10 Jan 2019 18:53:37 -0800 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 10 Jan 2019 18:53:37 -0800 Received: from bgsmsx153.gar.corp.intel.com (10.224.23.4) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 10 Jan 2019 18:53:36 -0800 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.128]) by BGSMSX153.gar.corp.intel.com ([169.254.2.19]) with mapi id 14.03.0415.000; Fri, 11 Jan 2019 08:23:32 +0530 From: "Varghese, Vipin" To: Kevin Traynor , "Wang, Haiyue" , "dev@dpdk.org" , "Zhang, Qi Z" Thread-Topic: [dpdk-dev] [PATCH v1] net/i40e: perform basic validation on the VF messages Thread-Index: AQHUqQza/dTgqecol0WAJzUOoyeUSKWpX0Cw Date: Fri, 11 Jan 2019 02:53:31 +0000 Message-ID: <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D2EFBDB@BGSMSX101.gar.corp.intel.com> References: <1547122051-26931-1-git-send-email-haiyue.wang@intel.com> <92f8ceb0-171d-f122-ad16-35eba3e9f979@redhat.com> In-Reply-To: <92f8ceb0-171d-f122-ad16-35eba3e9f979@redhat.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: Fri, 11 Jan 2019 02:53:39 -0000 SGkgS2V2aW4sDQoNCkEgcXVlc3Rpb24sIHNpbmNlIHRoZSBwYXRjaCBpcyBmaXhpbmcgaXNzdWUg Zm9yICdpNDBlIHZmJyAgc2hvdWxkIG5vdCB0aGUgc2VjdGlvbnMgZm9yICdrbm93biBsaW1pdGF0 aW9ucycgb3IgJ2k0MGUgUE1EJyBiZSB1cGRhdGVkIHRvbz8NCg0KVGhhbmtzDQpWaXBpbiBWYXJn aGVzZQ0KDQo+IC0tL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