From owner-freebsd-net@freebsd.org Tue Jul 11 00:08:04 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D277DDB3A85; Tue, 11 Jul 2017 00:08:04 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0082.outbound.protection.outlook.com [104.47.40.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 861787D014; Tue, 11 Jul 2017 00:08:03 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jYereb+pvekZL9jy/5UqNgEjmlyQ8ADvv91miuuu1xI=; b=LiQWjul/BhUdgCXBg0KMwomBMGuxzce/XrHpdX4gxhWdGCpyyA7fiXPVafQT1XcAnRU+fxnL8lFxDrBy1YwWhBs0g+azbeMERilOtHCvSQXqAy0J9uulzn922JkH8HGP6uZO1bVpVlE///VVY3QqW7W+/AKOWNuVClsjOi7vfUQ= Received: from BY2PR07MB1474.namprd07.prod.outlook.com (10.162.76.152) by BY2PR07MB1474.namprd07.prod.outlook.com (10.162.76.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Tue, 11 Jul 2017 00:08:02 +0000 Received: from BY2PR07MB1474.namprd07.prod.outlook.com ([10.162.76.152]) by BY2PR07MB1474.namprd07.prod.outlook.com ([10.162.76.152]) with mapi id 15.01.1240.020; Tue, 11 Jul 2017 00:08:02 +0000 From: "Somayajulu, David" To: "freebsd-drivers@freebsd.org" , "freebsd-net@freebsd.org" Subject: Question on SRIOV vf -> pf mapping Thread-Topic: Question on SRIOV vf -> pf mapping Thread-Index: AdL52TXL9BEmHJquTh+yExlQRYH9Zg== Date: Tue, 11 Jul 2017 00:08:02 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=cavium.com; x-originating-ip: [198.186.0.2] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BY2PR07MB1474; 7:rSzyzyvF8zoAUnZ29G2L3WCCPfwuW0Ofm83xX/ZXFzlMtvpK5Hhp8qbnk0UeDD7JHpj9CmUk/j1j74si4H1yGSFfjlNlF4NMCyQCylJuduvv02iRD/Tyr9+p4YEFh9LmHMENj8WZ3XDqBtzSIdDpTPPzd5j1RXGMLq6xYvfD/frv4ncvAWKqQUEbsYy6fDxMw2nx/nVePG6RzAhw35wWENss+1uzvsLN4yf9W0rpLKZnoae6pLwc+hXrg75+fhzXszE8HHipwlN1i9vCcfvSj2PBWRghoZREaTyHbgnEYwGooiKm2RLkG+pm4nYZ1GzYbsdbGjFMfFSL6lZgYjRtQ90zaJL1UPqaXgG8ZvqPNVSUDKFSURcCs/SC57igNH/u1HAZQ4Q7SvWfApYjKT8EpA6L1H1/sZEaxqt8Ed4pLa97Qf1TC5FzuZx7NC8IJQ6Euqdq7wTu0UvqSFFewljoHZhYW/+z6B+Bfc6E0jlcapCcEBgUMDEDGCW6YNJUHbrVUWJ7rxAG2yFO2RJ/kydymNiKbsHq6PFtxaSbkhJPxme4vzMSbYoZHbwuPgovZp5eg8CA5Zb4tEm46Uoewzt+Lj/wX/SsUEZV+IYCm/cYIgYghp+1LfUevp69+/8DZ3c1rCcORTkbFlc+GA8DV0mP5olRrHNx8JCtoVf/XSzb9D23ExJ/veP1mTjNqv5xTUAC/uxrAbBOteznw1n55oSpe3D4FqLXV4l5WMC7v92Npnw44ElHjLQmIZlfwrgpF+8fkld306jHiPMwiJYb2Kyf5zcDVP8oKfMjvknLShiEgis= x-ms-office365-filtering-correlation-id: 9b5ddc7a-1c88-4239-c35a-08d4c7f0e59d x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR07MB1474; x-ms-traffictypediagnostic: BY2PR07MB1474: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(151999592597050)(26388249023172)(236129657087228)(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123564025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR07MB1474; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR07MB1474; x-forefront-prvs: 0365C0E14B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39840400002)(39400400002)(39410400002)(2900100001)(86362001)(8676002)(189998001)(81166006)(74316002)(9326002)(8936002)(33656002)(2501003)(55016002)(77096006)(9686003)(99286003)(6306002)(54896002)(2906002)(6436002)(3660700001)(3846002)(6116002)(25786009)(790700001)(102836003)(450100002)(38730400002)(3280700002)(558084003)(5890100001)(66066001)(72206003)(7736002)(50986999)(478600001)(54356999)(14454004)(5660300001)(7696004)(53936002)(6506006); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB1474; H:BY2PR07MB1474.namprd07.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jul 2017 00:08:02.3361 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB1474 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2017 00:08:04 -0000 Hi, Given "device_t dev" of a VF is there a way to retrieve the "device_t dev" = of its PF ? In other words when device_attach is invoked for VF, is there= a way to get to the "struct device" of its PF ? Thanks David S. (davidcs@freebsd.org)