From patchwork Fri May 24 22:27:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ariel Levkovich X-Patchwork-Id: 1105184 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="I7KvdgPa"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 459gwd4c3Rz9s5c for ; Sat, 25 May 2019 08:27:29 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404420AbfEXW12 (ORCPT ); Fri, 24 May 2019 18:27:28 -0400 Received: from mail-eopbgr10071.outbound.protection.outlook.com ([40.107.1.71]:32916 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404396AbfEXW10 (ORCPT ); Fri, 24 May 2019 18:27:26 -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=I7KvdgPagrS+JKj/pDzp0Hi2KJ77QxS3vbsGBdbSfxystUd+WJyzQr0wGpOvwSw+Y30FuG/bk9VLuFjUGtu7pg0Jetl0azI68zm/jTZKn3xonjfwGNtGZYnN0YruZyybQPlMWVFm/m+WsLcoxosWSw6lx/8onOMmm/PiOt9YqBQ= Received: from VI1PR05MB3328.eurprd05.prod.outlook.com (10.170.238.141) by VI1PR05MB5039.eurprd05.prod.outlook.com (20.177.52.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.16; Fri, 24 May 2019 22:27:22 +0000 Received: from VI1PR05MB3328.eurprd05.prod.outlook.com ([fe80::d054:c1d5:5865:9092]) by VI1PR05MB3328.eurprd05.prod.outlook.com ([fe80::d054:c1d5:5865:9092%4]) with mapi id 15.20.1922.019; Fri, 24 May 2019 22:27:22 +0000 From: Ariel Levkovich To: "netdev@vger.kernel.org" CC: Ariel Levkovich Subject: [PATCH RFC 0/2] Support MPLS features in bonding and vlan net devices Thread-Topic: [PATCH RFC 0/2] Support MPLS features in bonding and vlan net devices Thread-Index: AQHVEn/b/MCTyIo3zE2HQ+8JdljlCw== Date: Fri, 24 May 2019 22:27:22 +0000 Message-ID: <1558736809-23258-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: LO2P265CA0457.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::13) To VI1PR05MB3328.eurprd05.prod.outlook.com (2603:10a6:802:1d::13) 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: 064190a0-4500-4c2c-f5ca-08d6e096fd62 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600147)(711020)(4605104)(1401326)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VI1PR05MB5039; x-ms-traffictypediagnostic: VI1PR05MB5039: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0047BC5ADE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(136003)(366004)(396003)(346002)(199004)(189003)(66556008)(66946007)(66476007)(305945005)(4326008)(64756008)(107886003)(66446008)(2501003)(25786009)(4720700003)(5660300002)(86362001)(81156014)(478600001)(8676002)(81166006)(386003)(102836004)(1730700003)(186003)(2906002)(26005)(50226002)(316002)(6506007)(14454004)(8936002)(256004)(6486002)(6436002)(476003)(36756003)(53936002)(7736002)(2616005)(71190400001)(73956011)(5640700003)(71200400001)(99286004)(3846002)(68736007)(4744005)(6512007)(6116002)(6916009)(2351001)(486006)(66066001)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB5039; H:VI1PR05MB3328.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: mfQBJ5Uwtrg0u6vCMXMF6RNo1KzTg3Jo5q436HLUCJGQ1NooYSB3/WwIzH8IuaJ9poOAJnkfILGjm7PxUHC2Cu5Y6D7BuLnnY8QAw78Nc6AgIqMGflxLR0L8hRHlTC3D/NxzTKxXhjfNAg7OxoemVFFc85/FLtnuRWjElfkP3mxAfW/0ehRmN58g0B7eR6eef+YbyUz0AK8s8nXAi6jqfN+89/Z7eZFu6b2TGE0j/YK/N85asXaDrs64oyYse8qn6msyb8luN0iwCq6ZKLRkv1XB/8jOyCdjopkd8bTmw5sTTnR/z7fqO3SV3SYk+BlyPeVC4EMblBefsOA2P24Sgdu8SS/J9euW8PNYqUsRQt48267SsqdBGTgqv3Zv1uhnBVyNs3GIsep+q9L/QRUQ0RC7fNVdA7Tl6AY8eSpllW0= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 064190a0-4500-4c2c-f5ca-08d6e096fd62 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2019 22:27:22.3439 (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: VI1PR05MB5039 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(+)