From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 59315A04F3 for ; Tue, 7 Jan 2020 16:20:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1087E1D9CA; Tue, 7 Jan 2020 16:20:30 +0100 (CET) Received: from moint.1and1.com (moint.1and1.com [212.227.15.7]) by dpdk.org (Postfix) with ESMTP id A092A1D9C0 for ; Tue, 7 Jan 2020 16:20:29 +0100 (CET) Received: from [10.96.5.13] (helo=BAPPEX004.united.domain) by mrint.1and1.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ioqej-0007in-EK for users@dpdk.org; Tue, 07 Jan 2020 16:20:29 +0100 Received: from KAPPEX004.united.domain (10.96.4.13) by BAPPEX004.united.domain (10.96.5.13) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 7 Jan 2020 16:20:29 +0100 Received: from KAPPEX004.united.domain ([fe80::cd77:480a:6c0c:9780]) by KAPPEX004.united.domain ([fe80::cd77:480a:6c0c:9780%12]) with mapi id 15.00.1395.000; Tue, 7 Jan 2020 16:20:28 +0100 From: Sebastian Bernauer To: "users@dpdk.org" Thread-Topic: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-4 card Thread-Index: AQHVwiIWgPqbdrmmEkC2Z2Jx4RdJ+6fZCuMAgAKOMQCAA75pgA== Date: Tue, 7 Jan 2020 15:20:28 +0000 Message-ID: <1578410429018.705@1und1.de> References: <1578048053580.44338@1und1.de> <1578064099257.15400@1und1.de> In-Reply-To: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-imapappendstamp: KAPPEX004.united.domain (15.00.1395.000) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.19.76.220] MIME-Version: 1.0 X-Virus-Scanned: ClamAV@mvs-ha-bs Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-4 card X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi Ori, thanks for your helpful response! The command "sudo ./l2fwd -w 04:00.0,dv_flow_en=3D0 -- -p 0x1" worked perfe= ctly for me. Thanks! Strangely on another server, exact the same server model and card, the card= works with the flow option enabled (,dv_flow_en=3D1). ibv_devinfo shows exact the same fw_version vendor_id, board_id etc. Thanks, Sebastian On 05.01.20 08:09, Ori Kam wrote: Hi Sebastian, My Name is Ori and I'm part of Mellanox DPDK team. I'm sorry to hear you encountered some issues. I will try to help you. 2 questions: 1. Can you tell me if the HAVE_MLX5DV_DR is defined? 2. can you please try adding device parameter ,dv_flow_en=3D0 and let me kn= ow if it works? Thanks, Ori Kam -----Original Message----- From: users On Beha= lf Of Sebastian Bernauer Sent: Friday, January 3, 2020 5:08 PM To: users@dpdk.org Subject: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-4 card Sorry for the duplicate post. I found the line that returns the error. In drivers/net/mlx5/mlx5_flow_dv.c, starting at line 6358: ------------------------------- cache_matcher->matcher_object =3D mlx5_glue->dv_create_flow_matcher(sh->ctx, &dv_attr, tbl->obj); if (!cache_matcher->matcher_object) { rte_free(cache_matcher); #ifdef HAVE_MLX5DV_DR flow_dv_tbl_resource_release(dev, tbl); #endif return rte_flow_error_set(error, ENOMEM, RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL, "cannot create matcher"); } ------------------------------- mlx5_glue->dv_create_flow_matcher(...) returns (void *) 0x0. Because of this, the if-statement is fulfilled and returns the error. Do you have an idea why the matcher can't be created? Thanks! Sebastian On 03.01.20 11:40, Sebastian Bernauer wrote: Hello DPDK team, I have 2 Mellanox ConnectX-4 MCX415A-CCAT cards connected with DAC (firmware 12.26.4012). Im using debian stretch and DPDK 19.11. If i try to start DPDK-applications i get the following error: sbernauer@he37:~$ lspci | grep Mellanox 04:00.0 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4] 42:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3] sbernauer@he37:~$ sudo dpdk-19.11/examples/l2fwd/build/app/l2fwd -w 04:00.0 -- -p 0x1 EAL: Detected 40 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: No available hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... EAL: PCI device 0000:04:00.0 on NUMA socket 0 EAL: probe driver: 15b3:1013 net_mlx5 MAC updating enabled Notice: odd number of ports in portmask. Lcore 0: RX port 0 Initializing port 0... EAL: Error - exiting with code: 1 Cause: rte_eth_dev_start:err=3D-12, port=3D0 I can't find a description of the error code -12, can you please give my a = hint whats my problem? Thanks a lot! Sebastian