From patchwork Mon Jun 3 22:36:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ariel Levkovich X-Patchwork-Id: 1109542 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="TOlx9RpR"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45Hqfq3SnDz9s1c for ; Tue, 4 Jun 2019 08:36:51 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726211AbfFCWgu (ORCPT ); Mon, 3 Jun 2019 18:36:50 -0400 Received: from mail-eopbgr70070.outbound.protection.outlook.com ([40.107.7.70]:6068 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726101AbfFCWgu (ORCPT ); Mon, 3 Jun 2019 18:36:50 -0400 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=rOLpKjZE9uIfFJBrOYuBt7GHE6Gfuiuf5NMC/gM99Bw=; b=TOlx9RpRgGObAmnq08TAk4BsLOanc8kk6uCQgs0NEfupgWkedqgt8SrJWfKsmJkdTcQ8TpLfpw0Gl41komnCH/ovkVnR+1fFu6GaaXzRfIV3GrKXXVfaq7fklgUBzHbz/Z/vRabBhThjDcgHo8uig62NN0katQi0Oa7fc2lqwOk= Received: from AM4PR05MB3313.eurprd05.prod.outlook.com (10.171.189.29) by AM4PR05MB3250.eurprd05.prod.outlook.com (10.170.126.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.18; Mon, 3 Jun 2019 22:36:45 +0000 Received: from AM4PR05MB3313.eurprd05.prod.outlook.com ([fe80::55c3:8aaf:20f6:5899]) by AM4PR05MB3313.eurprd05.prod.outlook.com ([fe80::55c3:8aaf:20f6:5899%5]) with mapi id 15.20.1922.021; Mon, 3 Jun 2019 22:36:45 +0000 From: Ariel Levkovich To: "netdev@vger.kernel.org" CC: Ariel Levkovich Subject: [PATCH net-next 0/2] Support MPLS features in bonding and vlan net devices Thread-Topic: [PATCH net-next 0/2] Support MPLS features in bonding and vlan net devices Thread-Index: AQHVGlzSERdpS9Cm2EeImPD9yjzdhA== Date: Mon, 3 Jun 2019 22:36:45 +0000 Message-ID: <1559601394-5363-1-git-send-email-lariel@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [141.226.120.58] x-mailer: git-send-email 1.8.3.1 x-clientproxiedby: LO2P265CA0106.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:c::22) To AM4PR05MB3313.eurprd05.prod.outlook.com (2603:10a6:205:9::29) authentication-results: spf=none (sender IP is ) smtp.mailfrom=lariel@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1798a0c0-e078-4308-70ad-08d6e873f536 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM4PR05MB3250; x-ms-traffictypediagnostic: AM4PR05MB3250: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0057EE387C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(396003)(39860400002)(346002)(376002)(189003)(199004)(14454004)(86362001)(3846002)(256004)(186003)(6116002)(2501003)(4720700003)(99286004)(4326008)(107886003)(2351001)(25786009)(66476007)(26005)(386003)(6506007)(4744005)(6916009)(52116002)(36756003)(71200400001)(71190400001)(316002)(305945005)(508600001)(66066001)(486006)(5640700003)(2616005)(68736007)(476003)(81166006)(73956011)(8676002)(1730700003)(81156014)(6512007)(8936002)(2906002)(7736002)(5660300002)(66446008)(64756008)(66556008)(6436002)(50226002)(66946007)(102836004)(53936002)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3250; H:AM4PR05MB3313.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-message-info: SwPGI/tulqjvrSVbADzsnJgWRxMGjdBMx+3Jakl5+V05XiPTmXj9VGhP8kxD+TuwLt7HVBEjvaMdOGLtwxxGHc5qWel5ncBQxF27kKvLkejLEelNMJt9DoH2Q9668aX96N1x+iYTOLlxEYnbfTWTkXT1tboMQjxJjB7eG2ZtKJIFcOx2ZgVaj53CAf5N8OIeGKR5L+w4qK92RHfrPWq5HDem3zkgJtQX/25kTlEJW9LvpOpGI2FhzRk8GC98YbfiA2PlwwxOiPsWQWYqCnimLszc7b2udTdmlG9SAiNi1yF2JRq3qsVs54mc0Z287OhthOkjZc865KsqDpvTvG10rGObpXmzlSuv0s0vE1KG7RLo6FNzDVsXxEUazSbiY6L111/sDudg38abWce5hn+iFbiV+TEtU1hen+VhEScbtZw= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1798a0c0-e078-4308-70ad-08d6e873f536 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2019 22:36:45.5330 (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: lariel@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3250 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Netdevice HW MPLS features are not passed from device driver's netdevice to upper netdevice, specifically VLAN and bonding netdevice which are created by the kernel when needed. This prevents enablement and usage of HW offloads, such as TSO and checksumming for MPLS tagged traffic when running via VLAN or bonding interface. The patches introduce changes to the initialization steps of the VLAN and bonding netdevices to inherit the MPLS features from lower netdevices to allow the HW offloads. Ariel Levkovich (2): net: bonding: Inherit MPLS features from slave devices net: vlan: Inherit MPLS features from parent device drivers/net/bonding/bond_main.c | 11 +++++++++++ net/8021q/vlan_dev.c | 1 + 2 files changed, 12 insertions(+)