From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80049.outbound.protection.outlook.com [40.107.8.49]) by dpdk.org (Postfix) with ESMTP id 1AC561E882 for ; Mon, 11 Jun 2018 11:51:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8M0FWPSYYdHc0WljfehvyDYNzjHTZltWdq7Q3xpnquI=; b=SyLcGTLsXfIQBxSThw3u9OBvC2u8hvZjttSGv8ghaqlPnmS4Hpx3oqV5QsnFOBVqLefDgrpTDHyq/49MbqvF6y7qh0Qc1Q+BMXLNl5jwmoTKExOAPO6Hb/1xnoFPDYyw5Q7qZrLnTB8SC5IJjfSyZYNhLgrO/TjnSq5QKrbHjKY= Received: from DB5PR05MB1254.eurprd05.prod.outlook.com (10.162.157.140) by DB5PR05MB1237.eurprd05.prod.outlook.com (10.161.245.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.14; Mon, 11 Jun 2018 09:51:37 +0000 Received: from DB5PR05MB1254.eurprd05.prod.outlook.com ([fe80::40c5:ca67:87b6:fc5e]) by DB5PR05MB1254.eurprd05.prod.outlook.com ([fe80::40c5:ca67:87b6:fc5e%4]) with mapi id 15.20.0841.019; Mon, 11 Jun 2018 09:51:37 +0000 From: Raslan Darawsheh To: Tobias Urdin , "users@dpdk.org" Thread-Topic: mellanox connect-x 3 pro dpdk with openvswitch Thread-Index: AQHUAWS7R3W3niTO80uPqAeUNBbI0qRa0G1g Date: Mon, 11 Jun 2018 09:51:37 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5PR05MB1237; 7:8yQ3RHd2p9H0CmWejpESHqNFHDaDLcTd0DDYNB8eRE4EBSRo6yCX62zNEg/NzWAu/A6+IAibpXZGVJZlHDv9Kt/PHYI+BSbqMPMUyVZdKIHJUo9DJkfBEAA5ZuZq5TQL8U9EpSachjstRpZNXERPj1j41++he6tjB2xchxFTIHBCW3+xPBO9oKHIdAUX3JnQYwSPJt6tohwADlSpE1ySDSLPRC/K44v8IOm5H1L//2wq2jj/dPQLEQHIbwhK1D0f x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB5PR05MB1237; x-ms-traffictypediagnostic: DB5PR05MB1237: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DB5PR05MB1237; BCL:0; PCL:0; RULEID:; SRVR:DB5PR05MB1237; x-forefront-prvs: 070092A9D3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(39380400002)(346002)(396003)(366004)(13464003)(189003)(199004)(305945005)(486006)(81166006)(446003)(11346002)(476003)(2501003)(25786009)(6436002)(316002)(5660300001)(66066001)(3846002)(6116002)(2900100001)(110136005)(8676002)(86362001)(99286004)(6246003)(5890100001)(5250100002)(229853002)(14454004)(7696005)(9686003)(2906002)(68736007)(33656002)(8936002)(74316002)(3280700002)(97736004)(55016002)(81156014)(575784001)(7736002)(105586002)(102836004)(53546011)(3660700001)(478600001)(106356001)(186003)(53936002)(6506007)(76176011)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR05MB1237; H:DB5PR05MB1254.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: mExu8UI7+L4NlbJWMs6JUZhcUv0XlGDcEC+c8AkmHHMlATGASd7XfUPTFwCNo6/F+5Jr7wTIwZ3qZGTjEdsmCQhc+OjlMHXp6sNYSIRX07jXTKBcRRWJbD8NO/Gm3TFXT/Mdyx8ZpqXvgJlrD3qHv6pS6wGSiN1pees5svKNSamkbCBvyool+NQaW7nmsVCT spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: af0db67b-7c49-4d55-dec3-08d5cf80ecd5 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: af0db67b-7c49-4d55-dec3-08d5cf80ecd5 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jun 2018 09:51:37.7874 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1237 Subject: Re: [dpdk-users] mellanox connect-x 3 pro dpdk with openvswitch 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: Mon, 11 Jun 2018 09:51:40 -0000 Hi Tobias, Can you try using the following ? ovs-vsctl add-port br-mlx enp59s0d1 -- set Interface enp59s0d1 type=3Ddpdk = options:dpdk-devargs=3Dmlx4_0 if it didn't work can you send the OVS-DPDK init log ? Kindest regards, Raslan Darawsheh -----Original Message----- From: users [mailto:users-bounces@dpdk.org] On Behalf Of Tobias Urdin Sent: Monday, June 11, 2018 12:15 PM To: users@dpdk.org Subject: [dpdk-users] mellanox connect-x 3 pro dpdk with openvswitch Hello, I'm stuck trying to test DPDK with a Mellanox Connect-X 3 Pro card on Ubunt= u 16.04 I've enabled iommu, fixed hugepages and has installed and are running the o= penvswitch-switch-dpdk alternative. $lspci | grep -i mellanox 3b:00.0 Ethernet controller: Mellanox Technologies MT27520 Family [ConnectX= -3 Pro] $lsmod | grep -i mlx mlx4_en 110592 0 vxlan 49152 2 i40e,mlx4_en mlx4_core 286720 1 mlx4_en ptp 20480 3 igb,i40e,mlx4_en $cat /etc/modprobe.d/mlx4_core.conf options mlx4_core log_num_mgm_entry_size=3D-1 $ovs-vsctl add-port br-mlx dpdk0 -- set Interface dpdk0 type=3Ddpdk Bridge br-mlx Port "dpdk0" Interface "dpdk0" type: dpdk error: "'dpdk0' is missing 'options:dpdk-devargs'. The old = 'dpdk' names are not supported" $ovs-vsctl add-port br-mlx enp59s0d1 -- set Interface enp59s0d1 type=3Ddpdk= options:dpdk-devargs=3D0000:3b:00.0,1 ovs-vsctl: Error detected while setting up 'enp59s0d1': Error attaching dev= ice '0000:3b:00.0,1' to DPDK. See ovs-vswitchd log for details. ovs-vsctl: The default log directory is "/var/log/openvswitch". 2018-06-11T09:10:38.696Z|00177|netdev_dpdk|WARN|Error attaching device '000= 0:3b:00.0,1' to DPDK 2018-06-11T09:10:38.696Z|00178|netdev|WARN|enp59s0d1: could not set configu= ration (Invalid argument) 2018-06-11T09:12:50.994Z|00181|dpdk|ERR|EAL: Driver cannot attach the devic= e (0000:3b:00.0) 2018-06-11T09:12:50.994Z|00182|dpdk|ERR|EAL: No port found for device (0000= :3b:00.0) 2018-06-11T09:12:50.994Z|00183|netdev_dpdk|WARN|Error attaching d= evice '0000:3b:00.0,1' to DPDK 2018-06-11T09:12:50.994Z|00184|netdev|WARN|enp59s0d1: could not set configu= ration (Invalid argument) $ovs-vsctl add-port br-mlx dpdk0 -- set Interface dpdk0 type=3Ddpdk options= :dpdk-devargs=3D"class=3Deth,mac=3Dec:0d:9a:b0:13:21" ovs-vsctl: Error detected while setting up 'dpdk0': Error attaching device = 'class=3Deth,mac=3Dec:0d:9a:b0:13:21' to DPDK. See ovs-vswitchd log for de= tails. ovs-vsctl: The default log directory is "/var/log/openvswitch". Port "dpdk0" Interface "dpdk0" type: dpdk options: {dpdk-devargs=3D"class=3Deth,mac=3Dec:0d:9a:b0:13:= 21"} error: "Error attaching device 'class=3Deth,mac=3Dec:0d:9a:= b0:13:21' to DPDK" Anybody know what I might have missed? I have tried restarting the openvswi= tch services after adding the interfaces as well but no difference. The logs doesn't say anything interesting from what I can see :( Best regards