From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-f180.google.com (mail-yk0-f180.google.com [209.85.160.180]) by dpdk.org (Postfix) with ESMTP id A60B5255 for ; Wed, 28 Jan 2015 03:26:54 +0100 (CET) Received: by mail-yk0-f180.google.com with SMTP id 131so7837611ykp.11 for ; Tue, 27 Jan 2015 18:26:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=wW3w+qYRkLA+AbxTlMjuWX9Fj5RasEvHMYuZIs4nLZU=; b=hKsMbWIuAfYPYIbfHzArGc1EA7dZgwAEdpXEEm4zegwqgBAHt2t+nNX5ojEAB2N9/v zxlXBGwxhN5KR5TK1dWrHg3/lyB867dYv7cIqgMFOpXJmusl0szAzYVaMavPfEactKX0 qINlxztBSAKtRp57ZfcdAqqYQiz1hEwzALFa+yuxlCQDHJfoEDF1+3YZpu4UZxeLD1fr TusrfC875M8uf/IFyNtezSgLTlHggUKnLZrVg8ZdivgCm3GkdStBmUgaXom0d/gC9mxy UYa+HZZ4zkt/wB8C7UzY/JFqcEAD5Qhlcha5hBhhmFBVnbHUN0vfOIREYbnrlEUEv9qf Xhaw== X-Gm-Message-State: ALoCoQkJ5E6G2i4cdW42X1dT5Nu4X0alflIx8z4oSM+9QkA8sp97A/2ZahF2M7mdKKTgLMtBCM8t MIME-Version: 1.0 X-Received: by 10.236.108.137 with SMTP id q9mr137391yhg.115.1422412013929; Tue, 27 Jan 2015 18:26:53 -0800 (PST) Received: by 10.170.42.212 with HTTP; Tue, 27 Jan 2015 18:26:53 -0800 (PST) Date: Tue, 27 Jan 2015 20:26:53 -0600 Message-ID: From: Jay Rolette To: Dev Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Any way to control port_id mapping? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 02:26:55 -0000 Is there a way to control what ethernet port gets mapped to each port_id in DPDK? >>From what I've seen, it looks like the port_id values just get assigned based on the order they come back in the PCI probe/scan. Ideally, I'd like to have the port_id values map reasonably directly to the customer-facing labels on my appliance. Label : port_id ------ ------- Port 1 : 0 Port 2 : 1 Port 3 : 2 etc. The PCI bus:slot.function values of the ethernet ports doesn't just sort cleanly (no surprise). I can work around it at higher levels, but it is a lot easier for debugging and stats if there is a way to control how DPDK maps physical ports to port_id values. I didn't see anything in the docs or example apps so presumably the answer is no, but thought I'd ask just in case. Is that something other folks would find useful? Thanks, Jay