From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0074.outbound.protection.outlook.com [104.47.34.74]) by dpdk.org (Postfix) with ESMTP id C0AC54C99 for ; Fri, 26 Oct 2018 16:38:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2PCuE1QzsEDb69vBRqctzPQIDhSMvseRKfW0zs22CYg=; b=HYbVDJGcv5jMFU8XM5iw5KT1R+FmDz27Uo2uPsxnaVqqWnsvscIX3OToiBDGPpDKJzJynik/aYz2N6GN/IZRq/ZsG52ydJcDzn937RBgQkfWKizqmSBIxIfs7bwvfh4V+FT7cMTHcBQwTD8JopU9Gfug1do8xWUwsFSdvUiaoBY= Received: from BYAPR07MB4997.namprd07.prod.outlook.com (52.135.238.214) by BYAPR07MB5704.namprd07.prod.outlook.com (20.178.0.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.31; Fri, 26 Oct 2018 14:35:24 +0000 Received: from BYAPR07MB4997.namprd07.prod.outlook.com ([fe80::c5c:4d86:b353:175a]) by BYAPR07MB4997.namprd07.prod.outlook.com ([fe80::c5c:4d86:b353:175a%4]) with mapi id 15.20.1250.028; Fri, 26 Oct 2018 14:35:24 +0000 From: Jerin Jacob To: Ferruh Yigit CC: "dev@dpdk.org" , "thomas@monjalon.net" , "arybchenko@solarflare.com" , "olivier.matz@6wind.com" , "qi.z.zhang@intel.com" , "beilei.xing@intel.com" , Wenzhuo Lu , Konstantin Ananyev Thread-Topic: [dpdk-dev] DEV_RX_OFFLOAD_VLAN_EXTEND offload Thread-Index: AQHUbRp9BJBaBaueiEKymxbtSmi8sKUxiMUAgAAPNwA= Date: Fri, 26 Oct 2018 14:35:24 +0000 Message-ID: <20181026143508.GA2616@jerin> References: <20181026105559.GA6843@jerin> <1888b918-6871-eadc-6aa1-fbf6b0cf48fe@intel.com> In-Reply-To: <1888b918-6871-eadc-6aa1-fbf6b0cf48fe@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.200.221.209] x-clientproxiedby: PN1PR01CA0079.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::19) To BYAPR07MB4997.namprd07.prod.outlook.com (2603:10b6:a03:5b::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR07MB5704; 6:QiZL5f/lgDEit7Q4eG+tLIpVFr7QJrRC8SbyHeiTdW8N7EVcFL43IUkJxY/wYLuzN5lYW9b8Ta58FcsCMhPzkcxB6H6KH9tGqFDhGmAz7+2+SMoa5dskhkeXJM1ZcMSfozzppwo1sirau37dWPpAatdte1Ol2M6bKJCz0hhceahn5AI1XawPsYQ+Tfg9fPUYymmiZZu8UM/SK7Y9QNwYEV33ou/dIbkSl/6e8U+AkqqJFdxlgvkOigOLM1nL3K72pfG4QX4etjZYw9QivyH2h0whiwSzrnmFNYxYCHuk1uHDU4Ygh1pTGGnuxGmIOvFHcOElv3QDoDaJIWUKou7whQMPzdCwE29LjgE0RhofibmhD7fJA7QFccHPvFp5dWvoTscdDEU8OU74omYDmY6eEVdQnw3OaZ5IdWJ+z34bVCP0SPVoeL8M3Rahfj+oh/FUugkC9I+RRFpW+oH+Qsf3BA==; 5:uhzQhzIvGszFvZHATC9BgnZ4HC+J9Qmvmsx8rzcYkHe+HUH7jro+Aw3cbjI8rwofa8tVJ56ngWSM1O/+GXbAFtWB/wGW+/N7iQdXeae+u6wE4pNWFBlA48K3Tt1NVe4cYdS63DWjORLO2WQcWKaLuezBpRnpjMuTCU80JwYQw6w=; 7:4Q3b2egMF4rJ2fJDYl7uzJ4iLc+CNZX/9pumCsLRnfOr+ShtnEB+6UKwjJy/qZ2Plgmy8HepPlWRIO4AO2eF+X4W/qSzQ0kKQ/kjmwRIb3Wasen1l/xuxaUmY8vVLQeVrKoT4FIKm3z3OXjgHqcOS2dl4cI8lykPtHdm3qF7G6GUNQQlexDaILgmZDo7cZjqhwawYLK9ULgJjO2vxm4rGYW+k8lVCDfrZ6fuiw0g2WcqGDyi8SjBla64khJnPf23 x-ms-office365-filtering-correlation-id: 01373712-b418-44c7-8883-08d63b504326 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB5704; x-ms-traffictypediagnostic: BYAPR07MB5704: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:BYAPR07MB5704; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB5704; x-forefront-prvs: 083751FCA6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(7916004)(39850400004)(376002)(346002)(396003)(366004)(136003)(199004)(189003)(13464003)(97736004)(446003)(76176011)(99286004)(71190400001)(6916009)(4326008)(71200400001)(25786009)(386003)(256004)(53546011)(6506007)(33896004)(106356001)(14444005)(476003)(102836004)(52116002)(11346002)(105586002)(1076002)(6116002)(2906002)(54906003)(26005)(186003)(316002)(5660300001)(72206003)(229853002)(6486002)(42882007)(3846002)(6246003)(486006)(478600001)(7736002)(6512007)(9686003)(5250100002)(33656002)(81156014)(33716001)(8676002)(2900100001)(14454004)(8936002)(81166006)(68736007)(305945005)(6436002)(66066001)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB5704; H:BYAPR07MB4997.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: JC4T28zy2BQVfULDbXGwl3aIHK1yxxW4R1GyiC871uCPbxTs0LLN92klU9mHpZTN2aa02iavLQfrshFYYoeWPwGoHt89IjV+TyhVPbV/qheIZ07mWkLAbRU+Far5RufYW+D/d7KylsYC6KwxBOSNcW3a6rM73my5TeRNNV+/vo78dumCK6163vefcYdl2JMnojEhuC/lAforHEU6MmD0NyOd/sRZoexgWhN/SwJNeEQQXuw5WBuWCIEJTmOoLNC7wU7+GV9H6Y8la1y0lu7xvqqgZFDgUF8YfKNILaSS0c8PMWI0NVrHDUWRN4uMZkOtbYFTHHJpMMOSxtDsvi5bMd9UlPQiqRzS/HH/4pQzRg4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <27B63B301156464BAD0CB4BE3537F64F@namprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01373712-b418-44c7-8883-08d63b504326 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2018 14:35:24.0322 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB5704 Subject: Re: [dpdk-dev] DEV_RX_OFFLOAD_VLAN_EXTEND offload 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: , X-List-Received-Date: Fri, 26 Oct 2018 14:38:36 -0000 -----Original Message----- > Date: Fri, 26 Oct 2018 14:40:42 +0100 > From: Ferruh Yigit > To: Jerin Jacob , "dev@dpdk.org" > > CC: "thomas@monjalon.net" , > "arybchenko@solarflare.com" , > "olivier.matz@6wind.com" , "qi.z.zhang@intel.com= " > , "beilei.xing@intel.com" , > Wenzhuo Lu , Konstantin Ananyev > > Subject: Re: [dpdk-dev] DEV_RX_OFFLOAD_VLAN_EXTEND offload > User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 > Thunderbird/52.9.1 >=20 >=20 > On 10/26/2018 11:56 AM, Jerin Jacob wrote: > > > > Does anyone know the expectation of DEV_RX_OFFLOAD_VLAN_EXTEND > > offload? Does not look like it is documented. > > > > Looks like it is very specific to Intel controllers, Based on 82599 HRM= , > > it is following, not sure what is the real expectation from NIC in > > normative terms. > > > > Extended VLAN. > > ------------- > > When set, all incoming Rx packets are expected to have at least one VLA= N > > with the Ether type as defined in EXVET register. The packets can have > > an inner-VLAN that should be used for all filtering purposes. All Tx > > packets are expected to have at least one VLAN added to them by the > > host. In the case of an additional VLAN request (VLE), the inner-VLAN i= s > > added by the hardware after the outer-VLAN is added by the host. > > This bit should only be reset by a PCIe reset and should only be change= d > > while Tx and Rx processes are stopped. > > The exception to this rule are MAC control packets such as flow control= , > > 802.1x, LACP, etc. that never carry a VLAN tag of any type > > >=20 > This looks similar to QinQ but it seems not, in ixgbe datasheet it has: Yes. QinQ there is an already an offload called DEV_RX_OFFLOAD_QINQ_STRIP >=20 > " > Double VLAN and Single VLAN Support > ----------------------------------- > <....> > This mode is used for systems where the near end switch adds the outer V= LAN > header containing switching information. > <...> > " >=20 > And it in this mode hw doesn't insert or strip the outer VLAN, it expect = SW does > it. The ethernet type is not 0x88A8 but can be anything set on EXVET.VET_= EXT. So > looks like it is to let switch to add custom VLAN tags and NIC to ignore = them.