Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B61DCA9EAF for ; Thu, 24 Oct 2019 23:04:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C609D2166E for ; Thu, 24 Oct 2019 23:04:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="hRd6kZEz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733263AbfJXXEU (ORCPT ); Thu, 24 Oct 2019 19:04:20 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:34436 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733193AbfJXXET (ORCPT ); Thu, 24 Oct 2019 19:04:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zCuE/IiEXkr6s5WOh0uCb0f5L7q4fGDCgdGiJqc0ULw=; b=hRd6kZEzsOgcxi09/QeIYWYg/X /Ikw5xve9hDGDMAmHFTtzTDMjWT0qaqD3MtkEn44pkd6dIy+bAPZBU9IVICXzHmnivjsWVqK2q4Ae c2g4uU3ZwMeoSyQqdbGTXG7zkvB1Ql+B/b0usFqoxSQEvG/pL7NMMQddwGJtvBz/Fhw0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.92.2) (envelope-from ) id 1iNm9P-0006UJ-ID; Fri, 25 Oct 2019 01:04:15 +0200 From: Andrew Lunn To: David Miller Cc: netdev , Vivien Didelot , jiri@mellanox.com, Andrew Lunn Subject: [PATCH net-next v6 0/2] mv88e6xxx: Allow config of ATU hash algorithm Date: Fri, 25 Oct 2019 01:03:50 +0200 Message-Id: <20191024230352.24894-1-andrew@lunn.ch> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org v2: Pass a pointer for where the hash should be stored, return a plain errno, or 0. Document the parameter. v3: Document type of parameter, and valid range Add break statements to default clause of switch Directly use ctx->val.vu8 v4: Consistently use devlink, not a mix of devlink and dl. Fix allocation of devlink priv Remove upper case from parameter name Make mask 16 bit wide. v5: Back to using the parameter name ATU_hash v6: Rebase net-next/master Andrew Lunn (2): net: dsa: Add support for devlink device parameters net: dsa: mv88e6xxx: Add devlink param for ATU hash algorithm. .../networking/devlink-params-mv88e6xxx.txt | 7 + MAINTAINERS | 1 + drivers/net/dsa/mv88e6xxx/chip.c | 131 +++++++++++++++++- drivers/net/dsa/mv88e6xxx/chip.h | 4 + drivers/net/dsa/mv88e6xxx/global1.h | 3 + drivers/net/dsa/mv88e6xxx/global1_atu.c | 32 +++++ include/net/dsa.h | 23 +++ net/dsa/dsa.c | 48 +++++++ net/dsa/dsa2.c | 7 +- 9 files changed, 254 insertions(+), 2 deletions(-) create mode 100644 Documentation/networking/devlink-params-mv88e6xxx.txt -- 2.23.0