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 511E1F8AA for ; Fri, 6 Jan 2017 01:33:09 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP; 05 Jan 2017 16:33:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,323,1477983600"; d="scan'208";a="50053121" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga005.fm.intel.com with ESMTP; 05 Jan 2017 16:33:06 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 5 Jan 2017 16:33:06 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 5 Jan 2017 16:33:06 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Fri, 6 Jan 2017 08:33:04 +0800 From: "Wu, Jingjing" To: "Lu, Wenzhuo" , "dev@dpdk.org" CC: "Lu, Wenzhuo" Thread-Topic: [dpdk-dev] [PATCH v7 03/27] net/i40e: set VF MAC anti-spoofing from PF Thread-Index: AQHSZY6XO2pwSacjyUeD5PJx0stbLaEpt7og Date: Fri, 6 Jan 2017 00:33:03 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810CC3CB8@SHSMSX103.ccr.corp.intel.com> References: <1480637533-37425-1-git-send-email-wenzhuo.lu@intel.com> <1483426488-117332-1-git-send-email-wenzhuo.lu@intel.com> <1483426488-117332-4-git-send-email-wenzhuo.lu@intel.com> In-Reply-To: <1483426488-117332-4-git-send-email-wenzhuo.lu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v7 03/27] net/i40e: set VF MAC anti-spoofing from PF 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, 06 Jan 2017 00:33:09 -0000 > + > + vsi->info.valid_sections =3D > cpu_to_le16(I40E_AQ_VSI_PROP_SECURITY_VALID); > + if (on) > + vsi->info.sec_flags |=3D > I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK; > + else > + vsi->info.sec_flags &=3D > ~I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK; > + > + memset(&ctxt, 0, sizeof(ctxt)); > + (void)rte_memcpy(&ctxt.info, &vsi->info, sizeof(vsi->info)); > + ctxt.seid =3D vsi->seid; > + > + hw =3D I40E_VSI_TO_HW(vsi); > + ret =3D i40e_aq_update_vsi_params(hw, &ctxt, NULL); > + if (ret !=3D I40E_SUCCESS) > + PMD_DRV_LOG(ERR, "Failed to update VSI params"); If fails, will you revert the info in vsi struct? > + > + return ret; Please return eth dev lib error code, but not I40E_XXX