From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3FB70A054F; Mon, 15 Feb 2021 09:37:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B1B0B1606E3; Mon, 15 Feb 2021 09:37:43 +0100 (CET) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id D305840FDF for ; Mon, 15 Feb 2021 09:37:42 +0100 (CET) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 5A2D87F504; Mon, 15 Feb 2021 11:37:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 5A2D87F504 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1613378262; bh=rXNhGOOGfTCKcXFc3pgrHEpQ+CgvMm4juGOgdV1hX3M=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=o2E1I9xRsbFsBBElZ8uZzczgd4C4gn9ekS1Ny+aOJJUSvkgZPrqB3DTs8HfnnDEhQ eZQZTo8M9CXDhJf7a/k2CrNDXkJGWFgOhkbmlSgnvYdYDjtp4gpXefBtj1EW/gpPoD yhBFJrwJcrI89mHhhZF+TmRRBUSd0kQpKuK//RWw= To: Xueming Li Cc: dev@dpdk.org, Viacheslav Ovsiienko , Asaf Penso , Bruce Richardson , Thomas Monjalon , Ferruh Yigit References: <1613272907-22563-1-git-send-email-xuemingl@nvidia.com> <1613272907-22563-7-git-send-email-xuemingl@nvidia.com> From: Andrew Rybchenko Organization: OKTET Labs Message-ID: <7deaf52b-5b0f-4edf-cf61-47ba1af1fa50@oktetlabs.ru> Date: Mon, 15 Feb 2021 11:37:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <1613272907-22563-7-git-send-email-xuemingl@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v6 6/9] ethdev: support multi-host in representor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2/14/21 6:21 AM, Xueming Li wrote: > The NIC can have multiple PCIe links and can be attached to the multiple > hosts, for example the same single NIC can be shared for multiple server > units in the rack. On each PCIe link NIC can provide multiple PFs and > VFs/SFs based on these ones. To provide the unambiguous identification > of the PCIe function the controller index is added. The full representor > identifier consists of three indices - controller index, PF index, and > VF or SF index (if any). > > This patch introduces controller index to ethdev representor syntax, > examples: > > [[c#]pf#]vf#: VF port representor/s, example: pf0vf1 > [[c#]pf#]sf#: SF port representor/s, example: c1pf1sf[0-3] > > c# is controller(host) ID/range in case of multi-host, optional. > > For user application (e.g. OVS), PMD is responsible to interpret and > locate representor device based on controller ID, PF ID and VF/SF ID in > representor syntax. > > Signed-off-by: Xueming Li > Acked-by: Viacheslav Ovsiienko > Acked-by: Thomas Monjalon Acked-by: Andrew Rybchenko