From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 645591B32E for ; Thu, 18 Jan 2018 16:05:19 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id o7so22878296wro.8 for ; Thu, 18 Jan 2018 07:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wBDROIA4ilAq39YRUACIzP1UzckqOXaeif6MGt2yI+U=; b=MoPNmNf9nP/zK4WWNz6RE/9GNtuaicrikvuArgCbuA/+skWNTT2jo2//PwsF5DtbeY LZWxyTAxydwgQ+u2CSx0cqb7dy7vs5E9HQAiaK2/kwv2v15tnWRX9Fu0bvLe5f9+O8a5 YjcS6vQNUCb0rIy1ITT+or3LICqJbhDzZhSEYo+ECPpbAyJX48vHmq3QkCl7e53+Mqhc 7Vyb85aZg7GcMJxT1tghN4C6y14XdOEGGM9ZmLqMQINZqnbICXuQFhXjl6RurE0+5Ptg zbntaZEe4hWyvetGFwYyC9uidMFpNORh9fiwxg4YkiLSTu2D31p0+P+VCPK7kM7h6Fuu sVBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wBDROIA4ilAq39YRUACIzP1UzckqOXaeif6MGt2yI+U=; b=XqI0+IP9AiKVj+F9Pe3kFUn2tDyghUZOCzQiqoA1lkR1S2bQhEmW4RSqmZ1cq2ma0H ZZaS85tzAUnfod0B72MXdlVkMty/9z8ngKDw5tx9cWTu6U2BEEPX8S+G8xeG4EyLu2k5 7QZFev4n3YqDgvRSrwctUNfv0JL9++nUE6S0znPFI/UeOI/E9Be//M0XepLgPs5mnoVA x5QeWRObfJMpDR+2ilQWLHobqX1tgnukB1QmrqnKyuFJL78NZApShGJOiAu5yeYdk+qt W2M2DcWUubRWBdNrsBSpjfczBfQj3AknEP/YeROnnkZrwz9kHgjPQqtvz98IuWBoDLw4 rDCg== X-Gm-Message-State: AKwxytdSkpV0rBEGuoVPoHoOhOjXCzdcCvv+CISuZHQ5F6E80TSKyjuu ONk4DY148PCSKv2IzE2SUbWLFg== X-Google-Smtp-Source: ACJfBovpnyiiARMT/yQponAodtBSNIZNGoEzRa/rs3DpBI5jPwoqrnZaEUL+DNUQT3rGS5Pt0mIW0w== X-Received: by 10.223.154.37 with SMTP id z34mr6984764wrb.209.1516287918918; Thu, 18 Jan 2018 07:05:18 -0800 (PST) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id y2sm5599028wrd.82.2018.01.18.07.05.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 07:05:17 -0800 (PST) Date: Thu, 18 Jan 2018 16:05:05 +0100 From: Adrien Mazarguil To: Timur Bogdanov Cc: users@dpdk.org, Olga Shern , Shahaf Shuler , Timothy Redaelli Message-ID: <20180118150505.GP4256@6wind.com> References: <20180118084828.GO4256@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 15:05:19 -0000 On Thu, Jan 18, 2018 at 03:11:16PM +0300, Timur Bogdanov wrote: > 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? In case MLNX_OFED is *not* installed, do both rdma-core and kernel version meet the minimum requirements? - rdma-core v15 - Linux 4.14 Note while the above versions are fine for mlx5 (ConnectX-4, ConnectX-5), they provide reduced performance and RSS capabilities for mlx4 (ConnectX-3), for which I recommend to use at least: - rdma-core v16 - Linux 4.15 (not released yet, 4.15-rc8 will do in the meantime) > 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 rdma-core requires an up-to-date kernel. If this can't be satisfied, MLNX_OFED is the only alternative (the mlnx-ofa_kernel package). > 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 -- Adrien Mazarguil 6WIND