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 D9E20A10DA for ; Wed, 31 Jul 2019 08:14:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 639F81C011; Wed, 31 Jul 2019 08:14:27 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40075.outbound.protection.outlook.com [40.107.4.75]) by dpdk.org (Postfix) with ESMTP id 831EB1BFF7 for ; Wed, 31 Jul 2019 08:14:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZFRKqXRMlLuZfD9ww+LunqLRtJs6+IEThJRz5kJa2t9a0YT9vh3h+DVENOPVpxQj2v6MUVvPpsstXGibAl07YoIvC+t6MGNtz07cNNpXto+gN9dtNjdUsmFsDFA4JU7Htt0yhP/sC1qFZNAMxq1n5/5Ddfi6qRi1lZSFGUM9Z3kVtMqO+tLsIeD2lowFRAFJCOBGEp62lPJ6Sn55sco8IWCADq8OYb9r3DvK+N33uI1NeZmSHhrq1akHsZz7B2bBmFg/SAmuBfE5Lkltmj/YVOyYdbTcprxHQqsoA8aFD+R6Yoce3d5TkOVimB4y3imeaEtGqeYlW6zwfN/Ueoi0mg== 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=rOgUAR8ZdR3ODo29lBf5kSHzVuc9ZZsRM789fQ2vwsM=; b=BJBJyT3oaYkxUOGRdM2bHM+EAVRDClco/vAJ9AsHAyuZHIYam4PzfaNyNuqTDr5a+IoORMXC1Ahjj4b87Rgi/GEFpUc7Pg+V7CX8pY0EkLGIDCD3m1Q1zC8JqZ8R4AUyORwOqPWV0l6Lt+N1zSV8eCwwf0U//sYkP10TJhtLCvmHU0LDvvXFTYYzYLaOF7pegFg7d1Pj6LtCZmgurmDk9C8/uLGyBzQSFaLyul2OFhyb1D1iMHQcaJ50lpqYC1pfY3YFMUyCCiFQcbunwD2MGekhWWWYWZ3tmrXk5Z6SHEMLp94YCexQ4tviQAhn/23+NO2+SV+Nncc3CDWiiFSJug== 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=rOgUAR8ZdR3ODo29lBf5kSHzVuc9ZZsRM789fQ2vwsM=; b=iwBAtv+ZM0HzmMYxReNlGkRL3f9ehToodlfP6sqAxkwK5LdKHxGQMNwN5/m75aM/nM7nVJJAjoHzJZAojaTUoE6T3hpV6/lepBxXmzT91r1sCD9FGWg/zk0MbeYBEU5VE9KHzKgx7eUJnMN24YTj7IZaPol2tKDSr9ou3j8pT2Y= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB3985.eurprd05.prod.outlook.com (52.133.40.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.15; Wed, 31 Jul 2019 06:14:24 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::5d2f:4ed:6a8d:e7ff]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::5d2f:4ed:6a8d:e7ff%3]) with mapi id 15.20.2115.005; Wed, 31 Jul 2019 06:14:24 +0000 From: Shahaf Shuler To: Slava Ovsiienko , "dev@dpdk.org" CC: Yongseok Koh Thread-Topic: [dpdk-dev] [PATCH v3] net/mlx5: add workaround for VLAN in virtual machine Thread-Index: AQHVRrgLtqrYFFC0rku89889vnhyFqbkQLZw Date: Wed, 31 Jul 2019 06:14:24 +0000 Message-ID: References: <1564414004-24336-1-git-send-email-viacheslavo@mellanox.com> <1564478424-7686-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1564478424-7686-1-git-send-email-viacheslavo@mellanox.com> 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=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cecbc432-376c-45a1-b206-08d7157e55d7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR0502MB3985; x-ms-traffictypediagnostic: AM0PR0502MB3985: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 011579F31F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(346002)(396003)(39860400002)(376002)(136003)(199004)(189003)(102836004)(74316002)(2906002)(66946007)(66446008)(99286004)(81166006)(66556008)(81156014)(64756008)(7736002)(305945005)(76116006)(4326008)(8936002)(66476007)(478600001)(11346002)(476003)(14444005)(256004)(2501003)(486006)(33656002)(68736007)(66066001)(107886003)(3846002)(6246003)(446003)(76176011)(55016002)(6436002)(86362001)(6116002)(7696005)(5660300002)(110136005)(25786009)(14454004)(52536014)(186003)(6506007)(26005)(53936002)(9686003)(71200400001)(229853002)(71190400001)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3985; H:AM0PR0502MB3795.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-message-info: D4pCfsEtB6iF+9Hd+vrbXC4bSNE5YiGW7zxT9jlr87gP8agJqfw1js9CVEptMihBNX+izlb4aktOKS1uNAfk5FrHh72fIf99V6FSq0mWASz7pewtg0IPvTok63buj2mLTsNPvSPqHG+F83Rz9eQSa+IYy3XSaY5qZtH/9TzRa3wyiwuybI16sObLiaYo2GkbwwTqzwR21sN6XG9Xt19k0eEdCJgBp6/ussuiGKJdDqG40H1pvOAe6Gyoaa9pl7WtdhSuLDuTkyKWnoZZ//r+UHUnOXst8cFvbQzEExA93rEmAWA7SGh6zrwbobiox+jC39Q511zyqPdREY1uU8bIsKGKctC7iHo6kg+vv/NtKq5Wu6j8w51JGlaO61y5swA8TjCWsg6Hey78qeDHZaUlIjtrt82Iab2o8AhIc9KR5F4= 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: cecbc432-376c-45a1-b206-08d7157e55d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2019 06:14:24.5193 (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: shahafs@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3985 Subject: Re: [dpdk-dev] [PATCH v3] net/mlx5: add workaround for VLAN in virtual machine 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" Tuesday, July 30, 2019 12:20 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH v3] net/mlx5: add workaround for VLAN in > virtual machine >=20 > On some virtual setups (particularly on ESXi) when we have SR-IOV and E- > Switch enabled there is the problem to receive VLAN traffic on VF interfa= ces. > The NIC driver in ESXi hypervisor does not setup E-Switch vport setting > correctly and VLAN traffic targeted to VF is dropped. >=20 > The patch provides the temporary workaround - if the rule containing the > VLAN pattern is being installed for VF the VLAN network interface over VF= is > created, like the command does: >=20 > ip link add link vf.if name mlx5.wa.1.100 type vlan id 100 >=20 > The PMD in DPDK maintains the database of created VLAN interfaces for > each existing VF and requested VLAN tags. When all of the RTE Flows using > the given VLAN tag are removed the created VLAN interface with this VLAN > tag is deleted. >=20 > The name of created VLAN interface follows the format: >=20 > evmlx.d1.d2, where d1 is VF interface ifindex, d2 - VLAN ifindex >=20 > Implementation limitations: >=20 > - mask in rules is ignored, rule must specify VLAN tags exactly, > no wildcards (which are implemented by the masks) are allowed >=20 > - virtual environment is detected via rte_hypervisor() call, > and the type of hypervisor is checked. Currently we engage > the workaround for ESXi and unrecognized hypervisors (which > always happen on platforms other than x86 - it means workaround > applied for the Flow over PCI VF). There are no confirmed data > the other hypervisors (HyperV, Qemu) need this workaround, > we are trying to reduce the list of configurations on those > workaround should be applied. >=20 > Signed-off-by: Viacheslav Ovsiienko > Acked-by: Matan Azrad Acked-by: Shahaf Shuler