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 7C9E3A04AC; Wed, 6 Nov 2019 17:35:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 68D5C1D159; Wed, 6 Nov 2019 17:35:31 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50060.outbound.protection.outlook.com [40.107.5.60]) by dpdk.org (Postfix) with ESMTP id 485BC1BEAA for ; Wed, 6 Nov 2019 17:35:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XaEy1EUNUmB26l0e96XJ8uL5nsZecnXpvAiC63tzycU3EFrWbodlvE+MfZz2gqk3aTPfMUfu/0YiHtazw3yQkLV9Go7RgO9Tfb+m0HfAcMpig5YeYWTbNft/UdGLawieyipCF6T5YprK5Uh/G/GzniJGuKCghvLE7fo/O4LmDzGilKeJWKRwYtejV2bvRpuCIwKQcTdM6WbtEec2QlcGJxOQKglet930T3/6DTgOViK/cAjz4I2N7F73Geo82t3Q4EkEDjxcXrtmLfUen1dKBdhZVxQ5sfSAgBwk6mDJH4nIStugxmBdcEf7jYkv15KxxvP/6TEfLBCoI2Z9yMj9AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=innRBb3kE4NMIVkIlQYqG+EjpE1H2HQ9OlUja6F6ZMY=; b=KJOCeAq6kvCHrkyLOjSHf17XrKlrajsP37kSoTJJAiqb4un5A+qiWiKICrj2bGnyOxl7/6VFsm7kDTjKskWyInrxFdgA/YxZwEISUZ5+81oIpo2ksEb0Mrod+/kIBA+/gtaSkwj0leuo0o/UgsfWxy/zSH3A8aBxdKrg1xUJIioJagvqPmjIdzO3dczPKEAzLAXU7Y3dXHs8vW2I3Na3qPM9IozJfWYY0NKkrU4Zb+4ckBm0mSskMDKxI6D6L1J3wfaK6r0ebGvNpMi/Z4IDk7rV1ie24cT3/pQDoQwXRPJf9rStavWrK9FZ3NaUnljRFNFsp2ge5V3unlQyjXrCuw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=innRBb3kE4NMIVkIlQYqG+EjpE1H2HQ9OlUja6F6ZMY=; b=kbXOps1Ct2o+x+V/EDITx57/GCBEqj5DDxKQcktdx7PEl7EMNNWoy117mNYVyTtQfU9ZuA05ruS6L0O+2JuvgWxzqm56BEoPSQEyU4gOcCvB2GNPdO5AOghQipa5wCUSVRROVSWij1hqTay2nkh27zcTwmwf6Q5JRkTbdLU7tmE= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3172.eurprd05.prod.outlook.com (10.171.186.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Wed, 6 Nov 2019 16:35:28 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::9940:94f2:db23:aa2c]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::9940:94f2:db23:aa2c%4]) with mapi id 15.20.2408.024; Wed, 6 Nov 2019 16:35:28 +0000 From: Slava Ovsiienko To: Hideyuki Yamashita CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow action on VLAN header Thread-Index: AQHVep9vAaM+AojguUG9N9frUX50nqdKSfMAgBYF6oCABHh/AIAAAyGQgAYeM4CABlZewIAB3Z8AgAAAaUCAAAsxgIABUb6ggAAxSYCAAAlQ0IAH3BKAgAGcxgCAAFdJIA== Date: Wed, 6 Nov 2019 16:35:28 +0000 Message-ID: References: <20191105192621.4C26.17218CA3@ntt-tx.co.jp_1> <20191106200344.4C2F.17218CA3@ntt-tx.co.jp_1> In-Reply-To: <20191106200344.4C2F.17218CA3@ntt-tx.co.jp_1> 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=viacheslavo@mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: fb753e11-5457-40d5-6fb6-08d762d75556 x-ms-traffictypediagnostic: AM4PR05MB3172: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 02135EB356 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(346002)(376002)(396003)(39860400002)(136003)(13464003)(40764003)(189003)(199004)(66946007)(64756008)(66556008)(71200400001)(66476007)(5660300002)(446003)(11346002)(26005)(7696005)(186003)(7736002)(74316002)(81166006)(478600001)(53546011)(33656002)(486006)(81156014)(76176011)(2906002)(229853002)(14454004)(8936002)(476003)(76116006)(256004)(66446008)(52536014)(3846002)(316002)(6116002)(102836004)(6506007)(71190400001)(966005)(6436002)(55016002)(4326008)(6306002)(86362001)(66066001)(9686003)(6246003)(99286004)(14444005)(305945005)(6916009)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3172; H:AM4PR05MB3265.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WSalnibs9SSyLEgegLaA33oBot8r6O7kwHpSEkXd7CSW2sodlD4rcq6UeuP7aIatj2HqdhPGGpfz3tzqOJt3Nc/1EVTq2rXup043gzdfXso6Ml6Sn1q2oz1Q6kbgcGyguvgO891GL+8F7ATz+H9oUoWugcXiCcRMugQNlDNaqjZmvlLt3xucfnHrKQBqf5l3QoyV5egYjIKJZ2O5yDLnI3DSQxJFirdJaQTz2aXVCtycPc57HhVWPwBlUyT6kmD0DY1if0GN6j538YLRcpv6kLemOVeH2Lenj8SHnuU0cdFBnJEGTqVGWrkPR/PLeaLiFFLz4lcanFJKxgzrZLCMLNUhbEYQZGj41/c3qNO9Gfm9H2nI92DxiDw3djk04H08Gdo0jzYed4smTuYyLvjLSja7YdGPd2fwA9NDjb64PVlP6hNWadseVLefjkXNY9YW3TnjpLodRze/0dUpcCQv830mVJzA+FvrbdiWztXUbyw= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb753e11-5457-40d5-6fb6-08d762d75556 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Nov 2019 16:35:28.4353 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Gxb2+m6tokJCXyjuc92bg8YfD3snzFRORKGUWayZY9tUJAX9Tl3m8P7WieGA4dj+LH/X4ssoJO2799o4WCDn1R1ng7S4kwhNGZu5LK4KIa0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3172 Subject: Re: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow action on VLAN header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, Hideyuki > -----Original Message----- > From: Hideyuki Yamashita > Sent: Wednesday, November 6, 2019 13:04 > To: Slava Ovsiienko > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow action on > VLAN header >=20 > Dear Slava, >=20 > Additional question. > When I use testpmd in dpdk-next-net repo, it works in general. > However when I use dpdk19.11-rc1, testpmd does not recognize connectX-5 > NIC. It is quite strange, it should be, ConnectX-5 is base Mellanox NIC now. Could you, please: - configure "CONFIG_RTE_LIBRTE_MLX5_DEBUG=3Dy" in ./config/common_base - reconfigure DPDK and rebuild testpmd - run testpmd with --log-level=3D99 --log-level=3Dpmd.net.mlx5:8 (before --= separator) - see (and provide) the log, where it drops the eth_dev object spawning >=20 > Is it correct that ConnectX-5 will be recognized in 19.11 release finally= ? It should be recognized in 19.11rc1, possible we have some configuration is= sue, let's have a look at. > If yes, which release candidate the necessary change will be mergerd and > available? >=20 > BR, > Hideyuki Yamashita > NTT TechnoCross >=20 >=20 > > Dear Slava, > > > > Thanks for your response. > > > > Inputting other flows failed while some flows are created. > > Please help on the following two cases. > > > > 1) I would like to detag vlan tag which has specific destionation MAC > > address. No condition about vlan id value. > > > > testpmd> flow create 0 ingress group 1 pattern eth dst is > > testpmd> AA:AA:AA:AA:AA:AA / vlan / any / end actions of_pop_vlan / > > testpmd> queue index 1 / end > > Caught error type 10 (item specification): VLAN cannot be empty: > > Invalid argument > > testpmd> flow create 0 ingress group 1 pattern eth dst is > > testpmd> AA:AA:AA:AA:AA:AA / vlan vid is 100 / end actions of_pop_vlan > > testpmd> / queue index 1 / end > > Flow rule #0 created I'll check, possible this validation reject is imposed by HW limitations - = it requires the VLAN header presence and (IIRC) VID match. If possible - we'll fix. > > > > 2) I would like to entag vlan tag > > > > testpmd> flow create 0 egress group 1 pattern eth src is > > testpmd> BB:BB:BB:BB:BB:BB / end actions of_push_vlan ethertype > > testpmd> 0x8100 / of_set_vlan_vid vlan_vid 100 / of_set_vlan_pcp > > testpmd> vlan_pcp 3 / end > > Caught error type 16 (specific action): cause: 0x7ffdc9d98348, match > > on VLAN is required in order to set VLAN VID: Invalid argument > > It is fixed (and patch Is already merged - http://patches.dpdk.org/patch/62= 295/), let's try coming 19.11rc2. I inserted your Flow successfully on current Ups= tream.. With best regards, Slava > > Thanks! > > > > BR, > > Hideyuki Yamashita > > NTT TechnoCross > > > > > > > > > > -----Original Message----- > > > > From: Hideyuki Yamashita > > > > Sent: Thursday, October 31, 2019 11:52 > > > > To: Slava Ovsiienko > > > > Cc: dev@dpdk.org > > > > Subject: Re: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow > > > > action on VLAN header > > > > > > > > Dear Slava, > > > > > > > > Your guess is corrrect. > > > > When I put flow into Connect-X5, it was successful. > > > Very nice. > > > > > > > > > > > General question. > > > As we know - general questions are the most hard ones to answer ??. > > > > > > > Are there any way to input flow to ConnectX-4? > > > As usual - with RTE flow API. Just omit dv_flow_en, or specify > > > dv_flow_en=3D0 and mlx5 PMD will handle RTE flow API via Verbs engine= , > supported by ConnectX-4. > > > > > > > In another word, are there any way to activate Verb? > > > > And which type of flow is supported in Verb? > > > Please, see flow_verbs_validate() routine in the mlx5_flow_verbs.c, > > > it shows which RTE flow items and actions are actually supported by > Verbs. > > > > > > With best regards, Slava > > > > > > > > > > > > > > ----------------------------------------------------------- > > > > tx_h-yamashita@R730n10:~/dpdk-next-net/x86_64-native-linuxapp- > > > > gcc/app$ sudo ./te stpmd -c 0xF -n 4 -w 04:00.0,dv_flow_en= =3D1 -- > socket- > > > > mem 512,512 --huge-dir=3D/mnt/h > > > > uge1G --log-level port:8 -- -i --portmask=3D0x1 --nb-cores=3D2 > > > > --txq=3D16 --rxq=3D16 [sudo] password for tx_h-yamashita: > > > > EAL: Detected 48 lcore(s) > > > > EAL: Detected 2 NUMA nodes > > > > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > > > > EAL: Selected IOVA mode 'PA' > > > > EAL: Probing VFIO support... > > > > EAL: PCI device 0000:04:00.0 on NUMA socket 0 > > > > EAL: probe driver: 15b3:1017 net_mlx5 > > > > net_mlx5: mlx5.c:1852: mlx5_dev_spawn(): can't query devx port 1 on > device > > > > mlx5_ 1 > > > > > > > > Interactive-mode selected > > > > > > > > testpmd: create a new mbuf pool : n=3D171456, > > > > size=3D2176, socke t=3D0 > > > > testpmd: preferred mempool ops selected: ring_mp_mc > > > > testpmd: create a new mbuf pool : n=3D171456, > > > > size=3D2176, socke t=3D1 > > > > testpmd: preferred mempool ops selected: ring_mp_mc > > > > > > > > Warning! port-topology=3Dpaired and odd forward ports number, the l= ast > port > > > > will p air with itself. > > > > > > > > Configuring Port 0 (socket 0) > > > > Port 0: B8:59:9F:C1:4A:CE > > > > Checking link statuses... > > > > Done > > > > testpmd> > > > > testpmd> flow create 0 ingress group 1 priority 0 pattern eth dst > > > > testpmd> is > > > > 00:16:3e:2 e:7b:6a / vlan vid is 1480 / end actions of_pop= _vlan / > queue > > > > index 0 / end > > > > Flow rule #0 created > > > > testpmd> > > > > ------------------------------------------------------------------ > > > > --------------------------- > > > > ----------------- > > > > > > > > BR, > > > > Hideyuki Yamashita > > > > NTT TechnoCross > > > > > > > > > Hi, Hideyuki > > > > > > > > > > > -----Original Message----- > > > > > > From: Hideyuki Yamashita > > > > > > Sent: Wednesday, October 30, 2019 12:46 > > > > > > To: Slava Ovsiienko > > > > > > Cc: dev@dpdk.org > > > > > > Subject: Re: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow > > > > > > action on VLAN header > > > > > > > > > > > > Hello Slava, > > > > > > > > > > > > Thanks for your help. > > > > > > I added magic phrase. with chaging PCI number with proper one > > > > > > in my > > > > env. > > > > > > > > > > > It changes situation but still result in error. > > > > > > > > > > > > I used /usertools/dpdk-setup.sh to allocate hugepage dynamicall= y. > > > > > > Your help is appreciated. > > > > > > > > > > > > I think it is getting closer. > > > > > > tx_h-yamashita@R730n10:~/dpdk-next-net/x86_64-native- > linuxapp- > > > > > > gcc/app$ > > > > > > sudo ./testpmd -c 0xF -n 4 -w 03:00.0,dv_flow_en=3D1 > > > > > > --socket-mem > > > > > > 512,512 - -huge-dir=3D/mnt/h uge1G --log-level port:8 -- -i > > > > > > --portmask=3D0x1 --nb-cores=3D2 > > > > > > > > > > mlx5 PMD supports two flow engines: > > > > > - Verbs, this is legacy one, almost no new features are being > > > > > added, just > > > > bug fixes, > > > > > provides slow rule insertion rate, etc. > > > > > - Direct Rules, the new one, all new features are being added her= e. > > > > > > > > > > (We had one more intermediate engine - Direct Verbs, it was > > > > > dropped, but prefix dv in dv_flow_en remains ??) > > > > > > > > > > Verbs are supported over all NICs - ConnectX-4,ConnectX-4LX, > > > > > ConnectX-5, > > > > ConnectX-6, etc. > > > > > Direct Rules is supported for NICs starting from ConnectX-5. > > > > > "dv_flow_en=3D1" partameter engages Direct Rules, but I see you > > > > > run testpmd over 03:00.0 which is ConnectX-4, not supporting Dir= ect > Rules. > > > > > Please, run over ConnectX-5 you have on your host. > > > > > > > > > > As for error - it is not related to memory, rdma core just > > > > > failed to create the group table, because ConnectX-4 does not > support DR. > > > > > > > > > > With best regards, Slava > > > > > > > > > > > --txq=3D16 --rxq=3D16 > > > > > > EAL: Detected 48 lcore(s) > > > > > > EAL: Detected 2 NUMA nodes > > > > > > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > > > > > > EAL: Selected IOVA mode 'PA' > > > > > > EAL: Probing VFIO support... > > > > > > EAL: PCI device 0000:03:00.0 on NUMA socket 0 > > > > > > EAL: probe driver: 15b3:1015 net_mlx5 > > > > > > net_mlx5: mlx5.c:1852: mlx5_dev_spawn(): can't query devx port > > > > > > 1 on device > > > > > > mlx5_3 > > > > > > > > > > > > Interactive-mode selected > > > > > > testpmd: create a new mbuf pool : > > > > > > n=3D171456, size=3D2176, socket=3D0 > > > > > > testpmd: preferred mempool ops selected: ring_mp_mc > > > > > > testpmd: create a new mbuf pool : > > > > > > n=3D171456, size=3D2176, socket=3D1 > > > > > > testpmd: preferred mempool ops selected: ring_mp_mc > > > > > > > > > > > > Warning! port-topology=3Dpaired and odd forward ports number, > > > > > > the last port will pair with itself. > > > > > > > > > > > > Configuring Port 0 (socket 0) > > > > > > Port 0: B8:59:9F:DB:22:20 > > > > > > Checking link statuses... > > > > > > Done > > > > > > testpmd> flow create 0 ingress group 1 priority 0 pattern eth > > > > > > testpmd> dst is 00:16:3e:2e:7b:6a / vlan vid is 1480 / end > > > > > > testpmd> actions of_pop_vlan / queue index 0 / end > > > > > > Caught error type 1 (cause unspecified): cannot create table: > > > > > > Cannot allocate memory > > > > > > > > > > > > > > > > > > BR, > > > > > > Hideyuki Yamashita > > > > > > > > > > > > > > >=20