From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-f181.google.com (mail-ot0-f181.google.com [74.125.82.181]) by dpdk.org (Postfix) with ESMTP id D9D7E1B1EE for ; Thu, 18 Jan 2018 13:11:17 +0100 (CET) Received: by mail-ot0-f181.google.com with SMTP id s3so19853413otc.9 for ; Thu, 18 Jan 2018 04:11:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2n/qafFZSjOQj5wfrE4ttvbfWXeRZ1GgCJjArdXjt68=; b=kqR8v0Uf7p0w9NfPARQ8lmJs9nu0sMisiINE18lzMt3h3VDkGssmcpTXCRyuMEgv+8 DsL15Rvrr1HLzkmOvI7fQCCLObMma//RvUUcvJ+nXj7UI9lpEkVJNjjHaIOSpNWgN1XU oQE9JxiSt/HZpNg/oG6225tGnhRbZDnYj7+MHdhu2APsnHqd3EMaMx0hpoIysGwwV0Dv oNLYjy+AFb9IaAurSg4gIcuQn3C8znlWxnbBB/PQV4JGd0Yc0H/1TioGv6npWLdkco7j ClTC0GMkMWY+7LxPlqfrX3iK/usF32LpC44jgU9eRflNeMf5SEgzyv1Z3aolNiGEkHJi GuSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2n/qafFZSjOQj5wfrE4ttvbfWXeRZ1GgCJjArdXjt68=; b=uFinIjtQ8vx1gxVOlE1txAdRQP+bGK9eHVa/8GdFqOjH/2hf0f7AusEF10FyqcqGQO 2+LnnRLHwGV+eJmsxtI3kDv5nfqBxIqgAQPg2zaR5fujDgr/XnTgGIVnFIH0TZXDIP3W zp5tdyMVzptIOR7N7AgJ/QxCJ3Qo/V4irmm6rKIPPvdeA6EMKEvVL2fyVLmfgA5ZEvBQ mJkgvWnN+1Azvy9puyjWCVWpUJ9/pTKNOo3HJ7zpTvJF1e4sv0Kvbo8ixb6zbTynCkh6 0VvT8RWku3/u9Ch2axIWDAWwkgHv0XyjdWN/jQVCXbjWKl1ScVWMnHX0zU/B+nvNGCVC Fd8w== X-Gm-Message-State: AKwxyteDw7UNge68SOgd5V7jsqgBE8n5SMPQAhv/UM/dyHtDb1rp5SG9 26mYFHP25bDX4HPF6w9l18iRG4ThLqiYM+pXFOQ= X-Google-Smtp-Source: ACJfBotgVpbTrBmm5TQnOMk9sF/TT3f6GJFZvYya8TAbeKal3BZOWzPSgKUvUyqM2iu8r5IgoqT0ON7Ysv78MRZRuZY= X-Received: by 10.157.43.104 with SMTP id f37mr3315439otd.123.1516277477123; Thu, 18 Jan 2018 04:11:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.67.141 with HTTP; Thu, 18 Jan 2018 04:11:16 -0800 (PST) In-Reply-To: <20180118084828.GO4256@6wind.com> References: <20180118084828.GO4256@6wind.com> From: Timur Bogdanov Date: Thu, 18 Jan 2018 15:11:16 +0300 Message-ID: To: Adrien Mazarguil Cc: users@dpdk.org, Olga Shern , Shahaf Shuler , Timothy Redaelli Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Thu, 18 Jan 2018 21:08:40 +0100 Subject: Re: [dpdk-users] Unable to launch testpmd with Mellanox ConnectX-3 Pro NIC 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: , X-List-Received-Date: Thu, 18 Jan 2018 12:11:18 -0000 Yes, the problem was in this parameter and after changing it to "-1" testpmd application has been started successfully. BUT, it started successfully only on server where Mellanox OFED is installed. On another server a rdma-core was installed from sources. (rpm's were built and installed) I also changed the value of log_num_mgm_entry_size parameter to "-1" and restarted a server (since where is no openibd service on this server) and got the same error. Maybe mlx4_core kernel module parameter should be changed in some other config file? Anyway, I can also install and use OFED instead of RDMA but the RDMA is pointed as recommended on instructions page "http://dpdk.org/doc/guides/nics/mlx4.html" and it is interesting to bring it to working state. /Regards, Timur On Thu, Jan 18, 2018 at 11:48 AM, Adrien Mazarguil wrote: > On Tue, Jan 16, 2018 at 06:59:31PM +0300, Timur Bogdanov wrote: >> Hi, >> >> I'm trying to use dpdk with Mellanox ConnectX-3 Pro NIC. >> I built PMD for it according to instructions on >> "http://dpdk.org/doc/guides/nics/mlx4.html" and tried to launch >> testpmd app but got following error: > >> PMD: net_mlx4: 0xda13c0: cannot attach flow rules (code 95, "Operation >> not supported"), flow error type 2, cause 0x7f2869cdab80, message: >> flow rule rejected by device >> >> Fail to start port 0 > >> What can be the reason of testpmd does not start correctly? > > Did you provide by any chance -7 instead of -1 as a value for mlx4_core.ko's > log_num_mgm_entry_size parameter (as recommended by the above > documentation)? > > Timothy (CC'ed) reported that -7 does not quite work with the default flow > rules (too many limitations) and results in the above error message. -1 > should be used, -7 is only for specific use cases and should probably not > even be documented in this file. > > -- > Adrien Mazarguil > 6WIND