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 664B84256D for ; Mon, 11 Sep 2023 10:05:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DAB0402DD; Mon, 11 Sep 2023 10:05:27 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id E5B68402DA for ; Mon, 11 Sep 2023 10:05:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694419525; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=smQSRz4lUAcgDZPN6Dwwu5uW0RkLmMYQbL1bxAYcNV8=; b=NRUnQ9aWELaz2J/QXI7M8wn1eB/yOpIDjbeNx9dPQXm9gI1/FQZRyu+p0SeKzoMwVOnUV7 hGAiD3GvxJHFhBs7j2Q583keS/wf2BjlwULKyUO98NyBPcJOlFt9XLNOwLfzV2+0qLcI8a QU4wx9WZ7NEEH91zyU65QDzSKBk3XsU= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-189-_lHrLpJRNPO7tr6XhODEpQ-1; Mon, 11 Sep 2023 04:05:24 -0400 X-MC-Unique: _lHrLpJRNPO7tr6XhODEpQ-1 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2bf7c63c363so13577581fa.2 for ; Mon, 11 Sep 2023 01:05:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694419522; x=1695024322; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=smQSRz4lUAcgDZPN6Dwwu5uW0RkLmMYQbL1bxAYcNV8=; b=bG6bFIc8k9YJ2C7vgRBBepA/Y03U066vMuXpvfJxNiO3/mTZCOq73BqPyrIZ2I1DX8 wU1/phsIQxPgfDSbpL38sEqfazU5auwL4HgzAUdxu5cfm3T8+i8/iL5spyTQhh+CpZhK q/KQ0ZDABR4wRr7dSlDQ40H3pZ/r0LsCeg5lhWNPuKZoS5iD32s13J8TCmSdgoWbjWGZ ZtZS89fDQZUR86qiGKo1qkf2PPVzbOk4+xganPkSoYXPBSaQevhFI39HbbjZCd0EFtfa 49e4EWvxPycvKmpoIwT9258/MUlx1gOutEC2jYmGwkRMIvf8TDEE6vmRP7e+MNNsrXoa e9AQ== X-Gm-Message-State: AOJu0YyUF/JmmDFNBIAiK6ZUspYqLfVfv8vqaqz9tFgbtt2Nk1WQvUFC vKgeylUaqF5wQOM86G6qFOFMfkF2liubybshZy04Y250bmex/i882MW7UtjSNhBGUR2GZxnKTKo YzDm4RgYhYuB/RJfPwsNlAw== X-Received: by 2002:a2e:86d9:0:b0:2bc:d8cb:5a13 with SMTP id n25-20020a2e86d9000000b002bcd8cb5a13mr7431719ljj.42.1694419522654; Mon, 11 Sep 2023 01:05:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJADPzAxYwM1/HQ39MhJYDODZJYSgw9D3T+FWlSlVY0//Kw2v9fk6xyyKYzlQ6rrCt5XfKgL9vT+c0Fet3lAU= X-Received: by 2002:a2e:86d9:0:b0:2bc:d8cb:5a13 with SMTP id n25-20020a2e86d9000000b002bcd8cb5a13mr7431704ljj.42.1694419522264; Mon, 11 Sep 2023 01:05:22 -0700 (PDT) MIME-Version: 1.0 References: <20230910210445.Horde.9iIS_HJ33KAW3d2mfHFDKy6@webmail.itu.edu.tr> In-Reply-To: <20230910210445.Horde.9iIS_HJ33KAW3d2mfHFDKy6@webmail.itu.edu.tr> From: David Marchand Date: Mon, 11 Sep 2023 10:05:11 +0200 Message-ID: Subject: Re: Zero ports detected issue for Solarflare (SFC9250) cards To: avatli@itu.edu.tr Cc: users@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hello, On Sun, Sep 10, 2023 at 8:05=E2=80=AFPM wrote: > > > Hi all > > I'm trying to use Solarflare (SFC9250) cards with DPDK. I have > compiled the skeleton/basicfwd application but when I run it with the > following parameters, the number of ports becomes zero, and it can't > detect the Solarflare ports on the system. > > $ sudo examples/dpdk-skeleton -l 0 -n 2 > EAL: Detected CPU lcores: 10 > EAL: Detected NUMA nodes: 1 > EAL: Detected static linkage of DPDK > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Selected IOVA mode 'PA' > TELEMETRY: No legacy callbacks, legacy socket not created > EAL: Error - exiting with code: 1 > Cause: Error: number of ports (0) must be even > > Currently, the platform is using dpdk-stable-22.11.2 and CentOS 7 > > What am I doing wrong? I would greatly appreciate your assistance > > > hft_005@hft_005:~/volspace/dpdk-stable-22.11.2$ usertools/dpdk-devbind.= py -s > > Network devices using kernel driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:01:00.0 'XtremeScale SFC9250 10/25/40/50/100G Ethernet Controller > 0b03' if=3Denp1s0f0 drv=3Dsfc unused=3D *Active* > 0000:01:00.1 'XtremeScale SFC9250 10/25/40/50/100G Ethernet Controller > 0b03' if=3Denp1s0f1 drv=3Dsfc unused=3D *Active* If you expect those two PCI devices above to be taken over by DPDK, you need to unbind them from the kernel net driver sfc and bind them to vfio-pci. https://doc.dpdk.org/guides-22.11/linux_gsg/linux_drivers.html#binding-and-= unbinding-network-ports-to-from-the-kernel-modules Please keep in mind that you will lose connectivity to this system if you are connected through enp1s0f0 or enp1s0f1 netdevs. > 0000:06:00.0 'I210 Gigabit Network Connection 1533' if=3Denp6s0 drv=3Digb > unused=3D *Active* > 0000:07:00.0 'I210 Gigabit Network Connection 1533' if=3Denp7s0 drv=3Digb= unused=3D > 0000:08:00.0 'Ethernet Controller X710 for 10GBASE-T 15ff' if=3Denp8s0f0 > drv=3Di40e unused=3D > 0000:08:00.1 'Ethernet Controller X710 for 10GBASE-T 15ff' if=3Denp8s0f1 > drv=3Di40e unused=3D --=20 David Marchand