From owner-freebsd-net@freebsd.org Thu Jun 8 03:38:23 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 76CD1BF2A58 for ; Thu, 8 Jun 2017 03:38:23 +0000 (UTC) (envelope-from jordancaraballo87@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E4137111D for ; Thu, 8 Jun 2017 03:38:23 +0000 (UTC) (envelope-from jordancaraballo87@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id d73so22472830wma.0 for ; Wed, 07 Jun 2017 20:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YPXiQX1rzJw8I85xLiZd7EYI9DxG3v2TMLByPs+M0NU=; b=lCjkABXedvcXQJbAwBUA+puuwbghZ3XkOY4nN6P5eO0YvIjdi6tGM2JQ3nyRxmW90u Qv8Bu1Eqjz/QbiFTkdUbV5Msg21VfmIzDN9OFo5seK/YMFRi1coOFr8LJ9X9Qeh6RuI0 8jwM8jQ0iXOYgIXy0IunNdjJe3kcUx0SvYpFhPe/wudrqVQhlfE0yklxjn7Rsr5nL+N1 Bq1pkp7KqTZi7FRTnHsozAH26wNp2fqUUCM9hS6JLC5ICVO3qYFEoXueG71YslzdB3zL Qm/REtEkpVrL0KS0VVYIezuPicC2edejR2KQBxaTUUZ4lpR2gKmpgJzsSUMEwHDxtlFh MyFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YPXiQX1rzJw8I85xLiZd7EYI9DxG3v2TMLByPs+M0NU=; b=VTuiYUDLQQOL8K+RmFKgyBxKQ3vPOK2nX8oMh1j3Tt9gnFhNIhXvTftzRkFsdSnd5W Gozb6yM5JhuuQ/J2g/T5duosoyYvQgOBrYkK+sY0H4blw7MXIkkmoJqh0JjpnqWa+eSO fphmaUGLGdwzpepJGrKLOppmZPH2KrgH/AbDl6l9bLWjRPqckIykanSiYRrN6eQG/ZlW zDqp93EgyB+m72+3lyv4+FpaG02Nnw99mIwFi9Ev1riBGVan1xrI2WnAdFkx18JnPpv1 U5O8QL1xlNyu3zTjJBRnT89853pb2MKuZc2cprSd84z/KDhdykrEfYDc+kUGYO/zt0ax JHKg== X-Gm-Message-State: AODbwcCxgxxAF1AGXSr5LPGQVbA1F+poZo9jmbgWlM+JtOmb6tKYBIZm bdlm98vFnKupTpazT3289/9PLweArvhI X-Received: by 10.80.191.76 with SMTP id g12mr13426667edk.12.1496893101466; Wed, 07 Jun 2017 20:38:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.215.83 with HTTP; Wed, 7 Jun 2017 20:38:21 -0700 (PDT) From: Jordan Caraballo Date: Wed, 7 Jun 2017 23:38:21 -0400 Message-ID: Subject: chelsio T-580_CR DPDK link down To: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: Thu, 08 Jun 2017 03:38:23 -0000 Hi guys, I am currently trying to implement DPDK in a Dell PE R530 equipped with a Chelsio T-580-CR port in an 8x slot. So far, links to ports do not want to come up. Below are the commands of my exact approach. ############################### Installed dpdk from /usr/ports/net/dpdk in a FreeBSD 11-STABLE system. Unloaded every module related to dpdk and cxgbe. Then: # kldload if_cxgbe=E2=80=A8# dmesg | grep "t5nex" # pciconf -l | grep "t5nex" Note: The result given from this command is primarily t5nex0@pci0:129:0:4: # kldunload if_cxgbe Added to /boot/loader.conf below configurations and rebooted the system: # reserve 2 x 1G blocks of contiguous memory using contigmem driver=E2=80=A8hw.contigmem.num_buffers=3D2=E2=80=A8hw.contigmem.buffer_siz= e=3D1073741824=E2=80=A8# load contigmem module during boot process=E2=80=A8contigmem_load=3D"YES" Once the system is rebooted we proceed to attach the pic address to nic_uio module. # kenv hw.nic_uio.bdfs=3D"129:0:4"=E2=80=A8# kldload nic_uio.ko=E2=80=A8# p= ciconf -l=E2=80=A8The result of pciconf -l at the t5nex0 pci is nic_uio@pci0:129:0:4: Tried to run:=E2=80=A8# /usr/local/share/dpdk/x86_64-native-bsdapp-clang/app/testpmd -l 0-3 -n 4 -w 0000:129:00.4 -- -i But it prompts to the usage options. Then ran: # /usr/local/share/dpdk/x86_64-native-bsdapp-clang/app/testpmd -l 0-3 -n 4 -- -i And script runs but links are down. At interactive mode I use "set link-up port 0=E2=80=9D but it fails to brin= g any of the ports up. ################################### - Any advice or idea? - Am I missing something? - Is there any other better approach rather than dpdk to increase packets per second forwarding in a router? In case of needing additional log information do not hesitate to ask. Thanks in advance, Jordan