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 3E27AA2F67 for ; Fri, 4 Oct 2019 12:51:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 821471C1EA; Fri, 4 Oct 2019 12:51:25 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40062.outbound.protection.outlook.com [40.107.4.62]) by dpdk.org (Postfix) with ESMTP id E1B571C1E2 for ; Fri, 4 Oct 2019 12:51:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dWil4KbD2jmPAHVKSN1FU2SdTINeVUpQSKVmjP6haunky6AEbnucQt72GZF/8Ysp4NXQ79RC7DRvHpovfPyKttlx3sWFkscTSaH5Jd/nOL3FUSygSEW/R04VNuDcYtVpRi/1JzTsuLdFkUw3U2sMOb370ddaf6k5yD64sQgrLITgWlQeG2UhekCsik/ZVjyTQPWQXjgz2wj+j3sMiDOAU+Wy7Pt8SToOy6AQhnz2HUH1H4C/74nbCBo4+oqwbZXsSQwZx2lG+iHRyxTjbeFzpKGeC03sXM44UlEhKpyKfGstsdhS+kAEZLpVvxHZctUCVYzsZeHUKiPt50jagJFOBA== 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=4Z8gWCmEywyur+gsphY9wJHE+gk+Dr/+AVNs6X97UfI=; b=F46zMGzDTUNfwxBl4P72WCQCBwcbE5rZsGdZhb7E0X1BYz26rzWXE3qo7AkR/LWMaOkb8Z5qUx5PnYZx1w0hcOpzVBVNe2q0Igi7dpTLFmUJcvA3ziQZ9jS+YQUkBfoFirhqLAW+25QGMd0Am7mMHcJnov1TCOzJggKWmxkfkPOkpjEYakcTDKTupBzWVQ657u3JmOEc8e4qi/Ly4Ta/JkNuK3iRaYV6/w5J8bBxhfmU1enf+K0Ks4Si9AUIKFuaI4FTE3ysw/+u6fhKgQeht8ekW7BQCrFBTV14Oz2u8XweimLvydbsveNgTTQXuS6svkIQMd7iRul9MamqIBZ+sQ== 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=4Z8gWCmEywyur+gsphY9wJHE+gk+Dr/+AVNs6X97UfI=; b=No4ALfJMJS4aIv7bbZy4JxqSfmHmCReU/D9q0ZvPYAcVFpkWoe/sKH3TCFHMllegrWfIqaN2jg9OGnIGYqDmNQzvHnf5d5dC+RDPRcsVZSKPFYJZjfvC2oVdb1krH4vjbGSCiwyaM1WVftdh42EmNe0SoYkTh17jT3HdCs0iP5s= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3202.eurprd05.prod.outlook.com (10.171.189.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.20; Fri, 4 Oct 2019 10:51:22 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::da9:65ba:1323:a39b]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::da9:65ba:1323:a39b%7]) with mapi id 15.20.2305.023; Fri, 4 Oct 2019 10:51:22 +0000 From: Slava Ovsiienko To: Hideyuki Yamashita CC: Moti Haimovsky , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow action on VLAN header Thread-Index: AQHVep9vAaM+AojguUG9N9frUX50nqdKSfMA Date: Fri, 4 Oct 2019 10:51:22 +0000 Message-ID: References: <20191001211715.69C2.17218CA3@ntt-tx.co.jp_1> <20191004193505.95AA.17218CA3@ntt-tx.co.jp_1> In-Reply-To: <20191004193505.95AA.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-correlation-id: 8103074e-0bbf-4fac-0ac6-08d748b8cbea x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: AM4PR05MB3202:|AM4PR05MB3202: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 018093A9B5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(396003)(136003)(376002)(346002)(39860400002)(199004)(189003)(52314003)(13464003)(6436002)(5660300002)(11346002)(446003)(476003)(8936002)(2906002)(478600001)(26005)(229853002)(102836004)(14454004)(7696005)(316002)(25786009)(76176011)(6506007)(53546011)(33656002)(99286004)(81156014)(81166006)(52536014)(186003)(55016002)(9686003)(66446008)(64756008)(66556008)(66476007)(66946007)(76116006)(86362001)(66066001)(305945005)(74316002)(6916009)(4326008)(6116002)(3846002)(71200400001)(54906003)(256004)(71190400001)(6246003)(486006)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3202; H:AM4PR05MB3265.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: vjZOydoj1zD3W8+DLxDSMAx2OqfhH6i00Z50oEWPxBuU7FK2h2plPbszX957BVnGckvXV3laog66Od64UykLzNXHubLdYIe8VLp9s7ML4umimHTcvdcjZrqAQDabUcXdMjrjuQGOnzm0GimrLtrdIXKp0WUFMNEa0HiVMVEQebS+EIOf4YczSS4qilMKpUrstlCs0jW8EbsWQ+0PRXSk3eTSdEqd/oRSBoxU7BwBqeXola+HS6QnoTprGOoGA9avXylKC82NgpmLvaRa77my3d4/lrBZDa08shd8UcRhvxVxvSsRmStiH3w3TShQ0tAXQRXFe6zmo3bgbi2oVhvqdnJBL4wTa32pHxwEKh1ytnCJ0Qy/Qbhv5edG6SDauc5t49TVUB+1bxUT0JUe36p6ZB1uPzwqiExrBHlnGRuRPsQ= 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: 8103074e-0bbf-4fac-0ac6-08d748b8cbea X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2019 10:51:22.7740 (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: x4KQOB2vsWzaNYW4lS0uDlKP6TpTfkU21A3Zp0q2sHQ2zuXwb1ghod68UoQRUe1bFsTxrPezwGWpjeGKpZrFwFXQefpIMrh5bzqmM9ziceU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3202 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" > -----Original Message----- > From: Hideyuki Yamashita > Sent: Friday, October 4, 2019 13:35 > To: Hideyuki Yamashita > Cc: Moti Haimovsky ; Slava Ovsiienko > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow action on > VLAN header >=20 > Can somebody (Mellanox guys?) help me out? Hi, Hideyuki I'm sorry, there are long holidays in IL, so let me try to answer. >=20 > > Hello Moti, > > > > I have some questions on the patch. > > Just want to know how to use it. > > > > Q1. Is it correct understanding that the patch will be reflected in > > 19.11 if it is approved? Yes, it is merged and should be reflected. > > > > Q2.Which action should I specify when I want to insert VLAN tag to > > non-VLAN frame? > > > > OF_PUSH_VLAN and OF_SET_VLAN_VID and OF_SET_VLAN_PCP ? All of them, OF_PUSH_VLAN inserts the VLAN header, OF_SET_VLAN_VID and OF_SET_VLAN_PCP fill the fields with appropriate values. > > > > Q3. Is it possible to detag VLAN when it receives VLAN tagged frame > > from outside of the host? Do you mean some complex configuration with multiple VMs and engaged E-Swit= ch feature? Anyway, there are multiple ways to strip (untag) VLAN header: - with E-Switch rules (including match on specified port) - with local port rules - stripping VLAN in Rx queue > > > > Q4. Is it possible to entag VLAN to non-VLAN frame when it sends > > packet to outside of host? Yes. > > > > Q5.Are there any restriction to conbime other ACTIONS like QUEUE? Should no be. Action QUEUE is on Rx NIC namespace, VLAN POP is supported th= ere. > > > > Q6. Is it possible to apply rte_flow actions for specified tx queue of > > physical NIC? > > (e.g. VM connect with PHY:0 using tx queue index:1, I want to entag > > VLAN 101 to the traffic from VM to PHY:0 is it possible?) Directly - no, there is no item to match with specific Tx queue. If setting VLAN on specific Tx queue is desired we have two options: - engage Tx offload DEV_TX_OFFLOAD_VLAN_INSERT, and provide VLAN with each packet being transferred to tx_burst - engage DEV_TX_OFFLOAD_MATCH_METADATA feature, and set specific metadata for all packets on specific queue. Then the rules matching with th= is metadata may be inserted. [snip] With best regards, Slava