Received: by 10.213.65.68 with SMTP id h4csp254486imn; Fri, 30 Mar 2018 05:02:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx49z2IquaZcqkisWLdZgkUlYlzhvOZ6S9/jXEPJcGpdp35nHQtpu9tvPsltVFC7hmXkn/suz X-Received: by 2002:a17:902:6e8c:: with SMTP id v12-v6mr12575138plk.24.1522411366295; Fri, 30 Mar 2018 05:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522411366; cv=none; d=google.com; s=arc-20160816; b=VjikT56w4rWliWyKocLGHK7T5pHVdEQ0w9IFQrlWvg5MLff0D8qw977xlQM9vL9DcP 4fNl9HVjEmAx+PcPfXaF4P7nN170oJ9mqHomQBToMQExxP9L0wTy1CcHjemlXRpm5X2z JX68+c6PD7h2gZ7Ksyfo+6cWYVaP9hl6XQmZwOvISJdmvau7QAfDDnxRUmOPVx84R/pV nlN9kTIfmkozlkvRfHLwvAPjuytsyn7A/cb8sSZtGQc15u8jUxNhffuaBbiNH5HIS0EC BegKTWZWw3d3kawTYWvs2tj/PDGLvT3dLfVXFuWMw74/YFqYhHVZhx6tcAS/I21XuLbf Hkrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=t3ZEPjGVWWIWvUs8UczuxR4ZjBNaXOmOwnyigXENs1o=; b=Eo05Pi95tnTnE69knLIbXZVUTw+4X/el8ApansZae8FdxGcQFXPyttBI+qzasZcwo6 QhcD5BbPghPGVgwohuq7ELoJHz06bMGirxnYZuyKARCGOtj5wYAERpnCUsLYmB6Vqm1g Nsq6cAR2BKlYr0UHEkWreIdEoKDP3c/uvjna79fC9s4wvyTwDrmGiFb30xHxgmH40KR4 eDMA5SafGDQg+WOqTNgO8i9fpwDU+l5BEs22CJ8DBCPLPuXu4CQgmws1EPz8qKmf+eii 74HV7xklU5J0sd3EvE8Na7zxoGB96ktdk9cL1O1NTMDjfujjtEDndePVeqnhtbe396bA 3c+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=geBRk1hU; 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 l69si6168963pfk.180.2018.03.30.05.02.18; Fri, 30 Mar 2018 05:02:46 -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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=geBRk1hU; 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 S1752180AbeC3MA0 (ORCPT + 99 others); Fri, 30 Mar 2018 08:00:26 -0400 Received: from mail-sn1nam02on0075.outbound.protection.outlook.com ([104.47.36.75]:14287 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751204AbeC3MAV (ORCPT ); Fri, 30 Mar 2018 08:00:21 -0400 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=t3ZEPjGVWWIWvUs8UczuxR4ZjBNaXOmOwnyigXENs1o=; b=geBRk1hUdTuEvOVoGympZt5cN8tuq25gA7OMNDp8v+4seSbOoAGJtqHFIxOtaLeYKIfRYwyJ7SG/GR3mJ4FTdgxnRfzK5lfQYtMCpiYc6hKvqEzDNdGCVbBAJTf/H1IPI6WO5eyxnJoTVH5lOmV5DQVz31oDnx0FwgSD0G2pgyg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@cavium.com; Received: from localhost.localdomain.com (50.233.148.156) by CY4PR07MB2997.namprd07.prod.outlook.com (2603:10b6:903:d0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Fri, 30 Mar 2018 12:00:17 +0000 From: Vadim Lomovtsev To: sgoutham@cavium.com, sunil.kovvuri@gmail.com, rric@kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net Cc: dnelson@redhat.com, ynorov@caviumnetworks.com, Vadim Lomovtsev Subject: [PATCH v2 0/7] net: thunderx: implement DMAC filtering support Date: Fri, 30 Mar 2018 04:59:46 -0700 Message-Id: <20180330115953.17154-1-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CO2PR04CA0006.namprd04.prod.outlook.com (2603:10b6:102:1::16) To CY4PR07MB2997.namprd07.prod.outlook.com (2603:10b6:903:d0::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 17b297c4-e445-43e7-6840-08d59635ce31 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020);SRVR:CY4PR07MB2997; X-Microsoft-Exchange-Diagnostics: 1;CY4PR07MB2997;3:OenmwWC/7c8oPW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sQM5sbEsiOtR7SWx5TBcKztFW19bc1xWXXir8yE5zJyUT/GQ8nNOteKekX1R/ax3kTPQw5YnZmTMNHHM6CokGDLvDYD1GCYWhNlhNFMuegG7ToantXUwXFWJZLMktaSAsC5KWGrunUulvqEOgPw5hpo4ANCD++B12GbNxjGX1VELJ+Ai1119M9KJcETx4N+KKxz268fA9dIE2DSQQaVBkCBc8GQCmPUaWqsH7YaE1HcD8gM3JYxP8Gsa7cOId3D4vF5qRLQ57lwxdS8WfHyNl/JvRHg8ktMwdl2pHs0I4KnBYrPBYo/D+Wnoi0VlLoL0HhWj0MuG3dA05kdcNyWdri4njvx9DdXTdY/PLhHlFySwiPz6q03lEyGb4HVgNWIHmmnC/1qOZwamNo8TUJbjyNRlTtdxTr/AMiynaNVWdl7vix4PRA1g=;4:ayyn3gqxj/g+kquIDB+S4hv2t5i53YS4CItWD7nqtskdNdopzyx0cbpw7VNL+eVEK92s0B6KWHaCRUbH304+u4wnQGBxn14CZe/3FNe75wL7k89hdGIRKBUt+TJZfG7uvKhZBRuvbnvQGmpXvUvZGsKQ/kaI+Gh2JH6z2yam5xmApVfbybmCPP8dRYIa7NzJVs/fXkGsA4p27Hcbva4NGuHUe8y6JkWEriUAigemPeBAahygfhQJdlY3OcAkOce6Ph3r+UBkIV+mwcN4ekcQpw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3002001)(3231221)(944501327)(52105095)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011);SRVR:CY4PR07MB2997;BCL:0;PCL:0;RULEID:;SRVR:CY4PR07MB2997; X-Forefront-PRVS: 06274D1C43 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(396003)(376002)(39380400002)(346002)(366004)(39850400004)(189003)(199004)(3846002)(6116002)(1076002)(105586002)(81156014)(81166006)(8676002)(50466002)(53416004)(5660300001)(52116002)(97736004)(23676004)(6506007)(8936002)(59450400001)(76176011)(386003)(69596002)(2906002)(6486002)(6512007)(72206003)(39060400002)(6666003)(47776003)(316002)(7736002)(106356001)(486005)(486005)(476003)(107886003)(446003)(305945005)(53936002)(11346002)(2616005)(66066001)(16526019)(956004)(478600001)(68736007)(36756003)(50226002)(26005)(4326008)(2870700001)(42882007)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR07MB2997;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: =?utf-8?B?MTtDWTRQUjA3TUIyOTk3OzIzOmpBaXVYZHN5Y0RNaWwyOW9oYS8rRXM4SUhG?= =?utf-8?B?ZlptTHBnVDJGR1FEalBoVTdMcUpWM005M2dzTTFCdFI1Qm9FdWtIZ3ZZRWZH?= =?utf-8?B?M2tMeDRFUDYxR0ZpYk1Fc09Udk5WMmlQUEFoZlVoamhhQ0lpVTRuR0hOR25Y?= =?utf-8?B?WTdic3B5MmtlVTNXbHNOV2Q3RDdacmhFb0R0bzZYVkJTcG9vNk1XemN6NW5D?= =?utf-8?B?MXFvekRBMzhJWmJUN0huWDR6V211UHdsa0c2MmVIMG5NUE9jdnlyVzVXNkd0?= =?utf-8?B?MUhJU1QwSTN6WWRabmRnZ0Z4eDVVTUlNWkR2VHNPYVRnSFJNWmlPZHhzYVI3?= =?utf-8?B?N2FvdEI5ZGtvNTdORVF6dThnRWZGb1ZaelNlL3hTYmVmd1dIRHd4Ty91aWNm?= =?utf-8?B?NHRhaFNqQlA2aDMwZTB5MlE2WFNacXk5TVN1SWhKQzlrSi9CSzJ5eW14VjVP?= =?utf-8?B?NEp4YU51aVM4K21Nck1lemhRV1d6QVdGNHJTWnFDWXJ2eE1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G+1BM75KRivcA60ZPMnOV68K1ojFYmrN2MSA9qknoeV9WbEywUM0yaxPsRp0Zuj3IOIVufQLuB30Mjy0yg==;5:/zpt74XX6ztN/gLr2Yl6sdn4EEly+EpfZw45fSkIjKHmfdjvWgX1Hr109A+wo7GsL3SqyAVEov3y7lYlcbG50UHJtPhgZlPM++DcrqRBaapD2IzRsgBAkeGUX2Gw1Lj4TzADciZUB9cQoxgtSZIonutr7iNyYUmLTrbh/qJFRiE=;24:paza5qLfk6G1r3dQt9Ch4qeSidKKxaW1agZybtw5xt6EfSlU/lGbCeQKRLmXdCaV6kndFMCmEFgag3ZwLbxMP1o6RTDblszsRexI/goIUrE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR07MB2997;7:etFqY79dBUsIY5yEJ+7PsEh5Y7JoPY58W0KzezJVk8skTZLixpYUWijCuwSjaf5M+SOohjlRfv131SUUD7PInDtoY8kfTD4dq22xzIqXH7VHvJ8ec9GLLB+lHg2X0OvcwKpTZSEZOQvHs6zd4bQLcmo2IvdjtE/2V7iMiVq0vwY4uzT40qXWJ8e+BX/igW7EbNw9FF5XvK/F7T3S1nXD8GVhTzB6015qBxcKidv4dPkw9UJ9ea/HVxy40By1EqfM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2018 12:00:17.3789 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 17b297c4-e445-43e7-6840-08d59635ce31 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB2997 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vadim Lomovtsev By default CN88XX BGX accepts all incoming multicast and broadcast packets and filtering is disabled. The nic driver doesn't provide an ability to change such behaviour. This series is to implement DMAC filtering management for CN88XX nic driver allowing user to enable/disable filtering and configure specific MAC addresses to filter traffic. Changes from v1: build issues: - update code in order to address compiler warnings; checkpatch.pl reported issues: - update code in order to fit 80 symbols length; - update commit descriptions in order to fit 80 symbols length; Vadim Lomovtsev (7): net: thunderx: move filter register related macro into proper place net: thunderx: add MAC address filter tracking for LMAC net: thunderx: add multicast filter management support net: thunderx: add new messages for handle ndo_set_rx_mode callback net: thunderx: add XCAST messages handlers for PF net: thunderx: add workqueue control structures for handle ndo_set_rx_mode request net: thunderx: add ndo_set_rx_mode callback implementation for VF drivers/net/ethernet/cavium/thunder/nic.h | 29 ++++ drivers/net/ethernet/cavium/thunder/nic_main.c | 45 ++++- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 110 +++++++++++- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 201 ++++++++++++++++++++-- drivers/net/ethernet/cavium/thunder/thunder_bgx.h | 19 +- 5 files changed, 374 insertions(+), 30 deletions(-) -- 2.14.3