Message ID | 20180327150736.10718-5-Vadim.Lomovtsev@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BD7BA60353 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 27 Mar 2018 15:09:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAB9229B83 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 27 Mar 2018 15:09:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9ABD429B84; Tue, 27 Mar 2018 15:09:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 23B492862D for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 27 Mar 2018 15:09:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Kd7zFK7665tZIOk+/7XemC++PlIwdkhkLOfZ8vlFL9w=; b=av5tfMHwcI/2mg T54JI/xZszJ/Gjlpg/8I5RGKniBcZjNvac7dx83KT24PyANiSE+S6UUCkEMryvvvy5knJbYynh7tb kUCLFThzXbPc1aWvKbFWVslDT2cOnu0LJ3ya4BXBTYG4UuRp9vnQmP1lTy9TzooGKz5LUpe0FtbT7 +ifGdPhhuYmr79K98ipLqo6JO7fdu6TPa2iX7QOv4h+tLyPufz13kYZEdirM0qMHr8uHj+IVogWyf 0JEnkcy2SfvbkmnKSwi0cvslX8OGsNHI0rBX8J+QiNUZP4E6z0RuuYdp9dMA6ci6nSHTcoBzvbwxT bCaXLbT3fGyuFewCFyiA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0qEI-00036T-Kt; Tue, 27 Mar 2018 15:09:42 +0000 Received: from mail-dm3nam03on0069.outbound.protection.outlook.com ([104.47.41.69] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0qCp-0001h2-V7 for linux-arm-kernel@lists.infradead.org; Tue, 27 Mar 2018 15:08:14 +0000 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; bh=9aqnP25m6wf305EbxzI/J+YGb45ANP1kBZf29yajHmU=; b=liXMqIdOSQgc1JsQR3J2VesJ8VfF+3+hFltus/FSvVeL/00wlOjGFKixed4XtOiXyqTDQsste3gRcjjxZyAC7wiq+9rR5gGhY/Mk5q51vmqcyNrhWUqdWOhrVrZsvSXMjxf06HsBY4M/sWPWiO5LPuvLW25QRk7RQbdWowmDokw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@cavium.com; Received: from localhost.localdomain.com (50.233.148.156) by CY4PR07MB2998.namprd07.prod.outlook.com (2603:10b6:903:d0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Tue, 27 Mar 2018 15:07:50 +0000 From: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com> To: sgoutham@cavium.com, sunil.kovvuri@gmail.com, robert.richter@kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] net: thunderx: add new messages for handle ndo_set_rx_mode callback Date: Tue, 27 Mar 2018 08:07:33 -0700 Message-Id: <20180327150736.10718-5-Vadim.Lomovtsev@caviumnetworks.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180327150736.10718-1-Vadim.Lomovtsev@caviumnetworks.com> References: <20180327150736.10718-1-Vadim.Lomovtsev@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: DM5PR20CA0003.namprd20.prod.outlook.com (2603:10b6:3:93::13) To CY4PR07MB2998.namprd07.prod.outlook.com (2603:10b6:903:d0::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 60712497-d9fe-4c24-23dc-08d593f48270 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:CY4PR07MB2998; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB2998; 3:IWajrchsw3SSE5RK3hDgCl7w1hlXGCI0PNlH1fXND2U67vLLcF8YuO8eXOoPNtx6fUxc8scp6fEmoRgCQOL2iKRIwMG+Q1JN7d4TOtspuc2iDThL+tNxNssMASnzfiDhZD4Lvm8MHCVUtSumfPn1ADWTnVZcYaJu4uPOwIzwUeUtpjUEWWzs9dfs2WbgPhtPR5cq/2Sm6SZagOQ8wWHnRJYLqp4WkBfEj9Tl41IDOD2tiR3l0DKXzmws/Z9Y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uHDb+kzvr/54GFohpD9Dxhk4vUrlBexOo0G6Vnr7i2BrxIEyFyQDIcFzsh4g6blfEa57A27xuxCuKu7npYpnis6wX/PImGDxM/6HxPdP2eeKKYlHGVva3twnvSeawVAMvcsti5EnF72laf/QGLNyIFCoMF9TOKsKL1xLrxYl5o98KMDWI95jq6UcIwYSNcnhqLJ/4=; 4:buRdzQ9P6XNLdt58IBT2wBKi8cv+kUVosJRdUNXB46jmeihfOOpYo7cLPQjXwSqXJmpNODkQuQXWeX6FYs6dI7RcJNl/JZ27N61U10GU10BV149ZjSX/mGxH0ksDorgB4N87s5LitEwam81AaSPXyblwaY6Z1jVEsLYoBwFXBRwwBdXuG0jEroy7Ffv7Rrx36wbNSkjjHSsUizDNy5ncYrnPKeLBNo4yFS0c5qkzh2M3a2+iB4Rkv8akSAx1A+81VuktNY4qoueQfO0mCZCILA== X-Microsoft-Antispam-PRVS: <CY4PR07MB2998EAFD2B5EFD3A2DA6E8278AAC0@CY4PR07MB2998.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(3002001)(10201501046)(3231221)(944501327)(52105095)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR07MB2998; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB2998; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(366004)(39860400002)(396003)(39380400002)(376002)(189003)(199004)(446003)(2616005)(6116002)(478600001)(1076002)(107886003)(3846002)(6666003)(956004)(97736004)(39060400002)(50466002)(7736002)(53936002)(16526019)(66066001)(47776003)(26005)(48376002)(486005)(486005)(6486002)(15650500001)(6512007)(316002)(305945005)(11346002)(16586007)(105586002)(42882007)(6506007)(386003)(68736007)(69596002)(106356001)(72206003)(25786009)(2906002)(52116002)(53416004)(76176011)(81166006)(51416003)(8676002)(36756003)(476003)(50226002)(4326008)(5660300001)(81156014)(8936002)(227083002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB2998; H:localhost.localdomain.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB2998; 23:iftj53Vfx2Px2+Gzfcs2VcQf9oZ/lZU49bElGq+Be?= =?us-ascii?Q?cpguT7LQ2BwA1I5EXC38RAdPoCGccHXPwwRu5tzyrVHF4JLpyPtynoZ+DKP+?= =?us-ascii?Q?qklD7C+DWRS3rbgAkOuTZKCivAuAjpSVj8XNC/3Vw10Obs3hHzewZNnSdGUa?= =?us-ascii?Q?eG+U9ak4fKQgTb/LZFDIYmO/unpRT7ppMr+iBJvnoLlh2lphGXnsloJhNq2/?= =?us-ascii?Q?JPWSdV47T049VAJXbn7X40TQx+6Bs0O5kAuv8DOALkvDFSbk48og0WuUcAQo?= =?us-ascii?Q?GV7UdsAO98CI0sCjk7katlZ8iECOdn9d5JFwAWbcMGpfPC4J6E2vLjt34N5+?= =?us-ascii?Q?0DsPG2+t1uTXxftvtWD/GRgxHM2kPeV2QG/lPodJUE1HYUyg/yU6tnRao/+Q?= =?us-ascii?Q?wHitm86hug3QffQrD5TytR4/9SHaOzSyKQ0PLak487TC98468Vom40a7p9Bx?= =?us-ascii?Q?q++tZLeS3a3B68qM4GKSk8olPAoXoLhggbh8/TgTLEQcWA6Etj54nosorIvs?= =?us-ascii?Q?hst2rvEqTaUXhav0RRF8JEpO00LTWGoliXhB+uisdBXPhCfPL2zsNufNJHno?= =?us-ascii?Q?MeGiWs9vYLCL6pyDR5GDOR6Y5GnN9HuAO1b2W0eVH4jYZzptKHtrY8B9DJrb?= =?us-ascii?Q?JPjEEDjfE+Kr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Lj0S6Ky2Xsib/8cHsOtHoLphy8cqqjVxGINIXfzj8QSC6meRDyU3WN6rVYtNgo3pn31NS6BJgQ8WyMrp+ X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 15:07:50.6233 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 60712497-d9fe-4c24-23dc-08d593f48270 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB2998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180327_080812_043803_29BBA509 X-CRM114-Status: UNSURE ( 7.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: dnelson@redhat.com, Vadim Lomovtsev <Vadim.Lomovtsev@cavium.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/cavium/thunder/nic.h b/drivers/net/ethernet/cavium/thunder/nic.h index 4cacce5d2b16..069289b4f968 100644 --- a/drivers/net/ethernet/cavium/thunder/nic.h +++ b/drivers/net/ethernet/cavium/thunder/nic.h @@ -403,6 +403,9 @@ struct nicvf { #define NIC_MBOX_MSG_PTP_CFG 0x19 /* HW packet timestamp */ #define NIC_MBOX_MSG_CFG_DONE 0xF0 /* VF configuration done */ #define NIC_MBOX_MSG_SHUTDOWN 0xF1 /* VF is being shutdown */ +#define NIC_MBOX_MSG_RESET_XCAST 0xF2 /* Reset DCAM filtering mode */ +#define NIC_MBOX_MSG_ADD_MCAST 0xF3 /* Add MAC to DCAM filters */ +#define NIC_MBOX_MSG_SET_XCAST 0xF4 /* Set MCAST/BCAST RX mode */ struct nic_cfg_msg { u8 msg; @@ -556,6 +559,14 @@ struct set_ptp { bool enable; }; +struct xcast { + u8 msg; + union { + u8 mode; + u64 mac; + } data; +}; + /* 128 bit shared memory between PF and each VF */ union nic_mbx { struct { u8 msg; } msg; @@ -576,6 +587,7 @@ union nic_mbx { struct reset_stat_cfg reset_stat; struct pfc pfc; struct set_ptp ptp; + struct xcast xcast; }; #define NIC_NODE_ID_MASK 0x03