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 0ADE51B445 for ; Mon, 14 Jan 2019 09:34:00 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2019 00:33:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,477,1539673200"; d="scan'208";a="127506396" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 14 Jan 2019 00:33:59 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 14 Jan 2019 00:33:59 -0800 Received: from bgsmsx152.gar.corp.intel.com (10.224.48.50) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 14 Jan 2019 00:33:58 -0800 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.128]) by BGSMSX152.gar.corp.intel.com ([169.254.6.187]) with mapi id 14.03.0415.000; Mon, 14 Jan 2019 14:03:55 +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/dTgqecol0WAJzUOoyeUSKWpX0CwgABVkoCABFtU4P//8OAAgABzCRA= Date: Mon, 14 Jan 2019 08:33:54 +0000 Message-ID: <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D2F21D0@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> <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D2F1F56@BGSMSX101.gar.corp.intel.com> <039ED4275CED7440929022BC67E706115331AC53@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <039ED4275CED7440929022BC67E706115331AC53@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 08:34:01 -0000 SGkgUWkgWiBaaG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