From patchwork Fri Aug 5 20:00:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Singhai, Anjali" X-Patchwork-Id: 656290 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s5d2s38dmz9s4x for ; Sat, 6 Aug 2016 06:00:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9A8F38BD6A; Fri, 5 Aug 2016 20:00:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NG7Em6X857DH; Fri, 5 Aug 2016 20:00:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D5C2C8BC80; Fri, 5 Aug 2016 20:00:32 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id EE3C11C20CF for ; Fri, 5 Aug 2016 20:00:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E913B30A67 for ; Fri, 5 Aug 2016 20:00:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pYfdQevMuq8Q for ; Fri, 5 Aug 2016 20:00:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by silver.osuosl.org (Postfix) with ESMTP id AEB0530A5E for ; Fri, 5 Aug 2016 20:00:30 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 05 Aug 2016 13:00:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.28,474,1464678000"; d="scan'208"; a="1020457057" Received: from orsmsx107.amr.corp.intel.com ([10.22.240.5]) by fmsmga001.fm.intel.com with ESMTP; 05 Aug 2016 13:00:30 -0700 Received: from orsmsx151.amr.corp.intel.com (10.22.226.38) by ORSMSX107.amr.corp.intel.com (10.22.240.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 5 Aug 2016 13:00:29 -0700 Received: from orsmsx115.amr.corp.intel.com ([169.254.4.215]) by ORSMSX151.amr.corp.intel.com ([169.254.7.179]) with mapi id 14.03.0248.002; Fri, 5 Aug 2016 13:00:28 -0700 From: "Singhai, Anjali" To: "Samudrala, Sridhar" , "intel-wired-lan@lists.osuosl.org" Thread-Topic: [next PATCH] i40e: Expose 'trust' flag to userspace via ndo_get_vf_config. Thread-Index: AQHR7nje4z5MOfEVwkOjE/p3308Ja6A6ywlA Date: Fri, 5 Aug 2016 20:00:28 +0000 Message-ID: References: <1470329147-25005-1-git-send-email-sridhar.samudrala@intel.com> In-Reply-To: <1470329147-25005-1-git-send-email-sridhar.samudrala@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTUwMDlkMmQtOWQwMy00YjBhLWExM2UtNWMwYjhhNmUyZWUxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Ilh2Mkc0WEdaNnZjK1ljdjh0VE5uZGc1VUxOQW54R0V4UUwrcDdaS2w5eWs9In0= x-originating-ip: [10.22.254.139] MIME-Version: 1.0 Subject: Re: [Intel-wired-lan] [next PATCH] i40e: Expose 'trust' flag to userspace via ndo_get_vf_config. X-BeenThere: intel-wired-lan@lists.osuosl.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@lists.osuosl.org Sender: "Intel-wired-lan" ACK -----Original Message----- From: Samudrala, Sridhar Sent: Thursday, August 4, 2016 9:46 AM To: intel-wired-lan@lists.osuosl.org; Singhai, Anjali Subject: [next PATCH] i40e: Expose 'trust' flag to userspace via ndo_get_vf_config. This enables ip -d l to indicate if trust is on or off for VFs. Signed-off-by: Sridhar Samudrala --- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c index 6fcbf76..4bd66d7 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c @@ -2995,6 +2995,7 @@ int i40e_ndo_get_vf_config(struct net_device *netdev, else ivi->linkstate = IFLA_VF_LINK_STATE_DISABLE; ivi->spoofchk = vf->spoofchk; + ivi->trusted = vf->trusted; ret = 0; error_param: