Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6450715yba; Wed, 1 May 2019 12:33:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxRWK06D5CtotKCZmjbhc5qmtIoAG2vfKo5yoqpHtwlZi0gwCRQLITqYzkCjK9p9nLPcF4 X-Received: by 2002:a62:470e:: with SMTP id u14mr23534821pfa.31.1556739217414; Wed, 01 May 2019 12:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556739217; cv=none; d=google.com; s=arc-20160816; b=ffDm1GLiz6kp6OlnSLNBly0teP2DB0KdWjh311mHkJ7Eke++TURORap6pah8gYlgpM FvCYbw1uVvUeb2h74ycBS7C81GeYoj7eGkqOuxI+9bl5/95cvXXoQW6G6tinFRIuj0gx xqH5OS7XhiF7SNH83GSfv5MRiuXSe1MAXWOA6WyHAzLxh56Ew62K/4gcpa7bnZk2rkfb WnJ9DiMviTrMXJmD8XFj5IBXdg9b3kRasqgeiHC5dXFzJVGGQO80jhSeR5AVgsKce1Qf dtVEOhvVkUEajNbLrcb/VMlf/6jZGpEW6ONCRI8gPURSv3vgFsPcJbZGeEAyFU+qF9MT 9AEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=i8Ozsr0svN/G73Pw1tcMb9atfEqk3hrAD0fdD6JtnFE=; b=CVD8l6LvRLatc3VZ1bVECF+FqwYq56fbSXlr0iY/+jSRTMDImTKmKbCO3N+v4veB7D 6qLMqbHIFSOvSTAPEJHWZv2qA85ZPaPqU/iljL62lnwO6ua60je48N7t5dQU78GKPgSP VGeRWUYovbCU9WLNJEOURJQP3zC7KCb0VJc8yempHjwDRhucUv6I0NY29JPbC7TNZP0x DgVISNQHbZd0rYs63fLwhlXO0/ZWNCOHJdE8wjWf+GFxTxS9W+mXaMghrWxcKaUo5XKe R6QlEZ+HYc4OGzHMu5EFussYVzf0x2HEAQGkf53PU6d3NPhOhPNpIq634sigY56QErRS +nrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@prevas.se header.s=selector1 header.b=tbVqzgU+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si40629094pll.44.2019.05.01.12.33.21; Wed, 01 May 2019 12:33:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@prevas.se header.s=selector1 header.b=tbVqzgU+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbfEATcZ (ORCPT + 99 others); Wed, 1 May 2019 15:32:25 -0400 Received: from mail-eopbgr30097.outbound.protection.outlook.com ([40.107.3.97]:30801 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726289AbfEATcW (ORCPT ); Wed, 1 May 2019 15:32:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i8Ozsr0svN/G73Pw1tcMb9atfEqk3hrAD0fdD6JtnFE=; b=tbVqzgU+V+KBxdm1ULo+kzBE+8IKq9sZHSNqc3WPQJiv5bsvEsvzJ3rq2fZ4XhqId2W0KFfKij53Q7U/mDBHwoWli407jvsEEGNzX82DAFU4r0hiU96bgliJyNQzu2dQpvN8j64VkvXDSNLLlWExlD0D+Ptw0acHkQuZDC1bYII= Received: from VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM (20.178.126.212) by VI1PR10MB2382.EURPRD10.PROD.OUTLOOK.COM (20.177.62.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.15; Wed, 1 May 2019 19:32:13 +0000 Received: from VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM ([fe80::48b8:9cff:182:f3d8]) by VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM ([fe80::48b8:9cff:182:f3d8%2]) with mapi id 15.20.1856.008; Wed, 1 May 2019 19:32:13 +0000 From: Rasmus Villemoes To: Andrew Lunn , Vivien Didelot CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "David S. Miller" , Florian Fainelli , Rasmus Villemoes Subject: [RFC PATCH 4/5] net: dsa: implement vtu_getnext and vtu_loadpurge for mv88e6250 Thread-Topic: [RFC PATCH 4/5] net: dsa: implement vtu_getnext and vtu_loadpurge for mv88e6250 Thread-Index: AQHVAFSTxJvpVJ1k/0ChQ6SyRHzKCw== Date: Wed, 1 May 2019 19:32:13 +0000 Message-ID: <20190501193126.19196-5-rasmus.villemoes@prevas.dk> References: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> In-Reply-To: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0902CA0005.eurprd09.prod.outlook.com (2603:10a6:3:e5::15) To VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:e3::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Rasmus.Villemoes@prevas.se; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [5.186.118.63] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3cd7fc2a-e68b-4e3f-8680-08d6ce6bb629 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:VI1PR10MB2382; x-ms-traffictypediagnostic: VI1PR10MB2382: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 00246AB517 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39850400004)(396003)(136003)(346002)(376002)(189003)(199004)(81166006)(6512007)(14454004)(186003)(50226002)(8676002)(107886003)(66066001)(3846002)(71190400001)(4326008)(6116002)(8976002)(478600001)(54906003)(81156014)(1076003)(8936002)(25786009)(71446004)(72206003)(316002)(73956011)(71200400001)(305945005)(74482002)(68736007)(66476007)(76176011)(44832011)(486006)(64756008)(53936002)(66446008)(66556008)(256004)(99286004)(110136005)(6436002)(446003)(386003)(476003)(11346002)(6486002)(7736002)(26005)(6506007)(42882007)(2906002)(66946007)(2616005)(36756003)(52116002)(102836004)(5660300002)(138113003);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR10MB2382;H:VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: prevas.se does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: YxJ1UIUyPMBfUALNJAIv7TPugDh7dGvoOdJm6WS+d6nAADnNogdhSQsoUcB6+v9UWIOQc6naVe+1tKrTlvLW8RJMHllYNVtl5pH4d+19qotHH4SOmIq3O5qJaaGuao7KSq95ydEOzoJ0EkFFap+tpk4mY0293b/XdLU7wxANzJ839KemR5O6eMZfOJW3NtM4OXenX9j09aS6KCVq68pT1rpGPJorM1gduUO6OL0bUSX8oU9INwu+cSC3s9eUeVhbmy7uaXZWa9V0TguxSQhmq4mqen14C0AuDsXb3Z1yhtMitwwFsQA0vVmT00j2GnbDDw6KmYF7lHxg3y9hpiiFH6o5NMsG8mcDtw+Lqexb4tjXUm66JIwWHyfo41Sz8ss2KEiqXiWx39kKWj+fJnYQiKSD4RFKa17PMSKaWH6gl+8= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 3cd7fc2a-e68b-4e3f-8680-08d6ce6bb629 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2019 19:32:13.5343 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB2382 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlc2UgYXJlIGFsbW9zdCBpZGVudGljYWwgdG8gdGhlIDYxODUgdmFyaWFudHMsIGJ1dCBoYXZl IGZld2VyIGJpdHMNCmZvciB0aGUgRklELg0KDQpCaXQgMTAgb2YgdGhlIFZUVV9PUCByZWdpc3Rl ciAob2Zmc2V0IDB4MDUpIGlzIHRoZSBWaWRQb2xpY3kgYml0LA0Kd2hpY2ggb25lIHNob3VsZCBw cm9iYWJseSBwcmVzZXJ2ZSBpbiBtdjg4ZTZ4eHhfZzFfdnR1X29wKCksIGluc3RlYWQNCm9mIGFs d2F5cyB3cml0aW5nIGEgMC4gSG93ZXZlciwgb24gdGhlIDYzNTIgZmFtaWx5LCB0aGF0IGJpdCBp cw0KbG9jYXRlZCBhdCBiaXQgMTIgaW4gdGhlIFZUVSBGSUQgcmVnaXN0ZXIgKG9mZnNldCAweDAy KSwgYW5kIGlzIGFsd2F5cw0KdW5jb25kaXRpb25hbGx5IGNsZWFyZWQgYnkgdGhlIG12ODhlNnh4 eF9nMV92dHVfZm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