Received: by 10.213.65.68 with SMTP id h4csp756363imn; Tue, 27 Mar 2018 08:12:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELszzrI/C6itl44ngW6ydofCbxuNL+1FHdOKpAYjH1N8WIa6RZZgZSeKCnVHxsvbsYRMsq3c X-Received: by 10.101.66.132 with SMTP id j4mr30247937pgp.47.1522163579706; Tue, 27 Mar 2018 08:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522163579; cv=none; d=google.com; s=arc-20160816; b=aG5pBIza6azRxXN+M9AyEL3lG14JVij4+hd5g1cLx+Y/uXG3fypc53t6460fESr63+ zQMsNx6Ssw3+Le3qVMMIAMogdTMUxLrg7qILTWJEzYTc3GMDN1LIfS8hi030yOwd4xCd 6Cm60kYKTpPRD8siOo12GAzPsFushFL48N96HGz/F+nTbKHWdSzfb3xFowgMera6cP2H tANgkDcAZt7ururh6BmSejElzYsu6deanYYUnzJ6O7GDhtWHQlTUEKCVdEAeuBPTDrnT cf+6oeWOM4P6yI2YPJvfeKKHaFZz2CnOMQ9+B2U+d4G9fJNfeeqbTwa7QbgcVp6AjGll WOLQ== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=mCdbHe17ue6tk8gNUHY/yH53PE9oJC5XLAdDn6fxATk=; b=z9WuhO1PhLflTAsb+3ezWiG39cPtx2ltiP4RNqept1hphaMpksbZh9j9fjPp6fIa72 VDRGjLt9M8GP0JGW2Ejr26iIiWjBRdjFIfZI+aEohmH3vg2L9Yz52AfFKYwGUZ2hAtTE iHxcOuIsIwKkwT15lS9j8JcDyv1DN8R3GFjvbEtGLsYnO4IypX/K/cZ+h7XFKaf6R6V7 oi6nHT/elpux03L0Ri2xXmSJ1b16JofQMCz/pLSvB3ak7SS2hhCkTIky2LMhFzBtRRRF WIQokXdhjO1hLmGaXu4fEpNZL6mJioT004pouoHanoh17iejlEImv6XAeKoXhqtdMp7k 5I+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=I98pcLQV; 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 u189si1094098pfb.102.2018.03.27.08.12.44; Tue, 27 Mar 2018 08:12:59 -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=I98pcLQV; 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 S1752649AbeC0PHx (ORCPT + 99 others); Tue, 27 Mar 2018 11:07:53 -0400 Received: from mail-dm3nam03on0055.outbound.protection.outlook.com ([104.47.41.55]:5369 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752152AbeC0PHt (ORCPT ); Tue, 27 Mar 2018 11:07:49 -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=mCdbHe17ue6tk8gNUHY/yH53PE9oJC5XLAdDn6fxATk=; b=I98pcLQVxTZyOcl5xyd233jstmFQcWCXx+hNesjhGxkt02XRXpFFK4BptZ9gpSwYGck76aZTgsHZwR/4wFFSlHLkBuj/BRtkKAXXdOpIn3KAglLtxnw+iQjw0oETEd95VANvirNcM+gPbHInqlsfXTRJd/K5Ra2o2Y7goPyjYTI= 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:46 +0000 From: Vadim Lomovtsev 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 Cc: dnelson@redhat.com, Vadim Lomovtsev Subject: [PATCH 0/7] net: thunderx: implement DMAC filtering support Date: Tue, 27 Mar 2018 08:07:29 -0700 Message-Id: <20180327150736.10718-1-Vadim.Lomovtsev@caviumnetworks.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: e4303e70-70ae-4cbd-a323-08d593f47fe7 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:MvzIKZ1wl/7K5+bYDeeZplsVmiiqRHZvWZruFQ9vYVRvmwu3MkLrz+DZYruEx1hnlIeqXRz/LxCqHEDBlI4N2U/bHVLo22Bna8I+FfmUtKrrdEBkcc399+y/+1n1lE2JoCqMTsBt2/gRAgV5rRCUU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m99AlSu9BqWK5fOZ+Abo3Fn8AQ/cs+zedmTHyqmNux4E5sd3H5yQR4EC7iYetsaMhWG15iBQ8k5g5GKf7CMUs4x57eJIRyxZ1pxvT9eH4vVFBL49efiJ/FCT74SRpLpk2bA3IWBAD1mgKKHD/Xy4GFproOXiL6xTgrkrmrsWyiidTqMucg707DG3YlxLdJn+nG8r9HintBrNQDkAUhRfXp3p6kATBLrY62F9qNjuuLikduLun0xOO9tC/wk7CRyeiasoo6Pe1/kcFwTLVZbL/DhMFkNCp1sHm+0hLpQd3M70heU23a1GTo=;4:YB7gKcwiyvex9V0EKGHF7vXxfovjUe3NUlqIbDUKXDAzm2UDy6D0+BNev7bvP6Vx/gyABg+anzat3Qd7Z8TK69BaUUJIsPubmeupxBsGcK+JEPbUqqxPKTmmqeG2A9CyDkaXLOJGTrdKy1PjhXopt82TJcTttc34dhwzdDsmXOcZzBOv68CG65gKR28+m0pzzVemwkY21hsvPb8ORys5Lm3zvvQI+kc6tvDq8QbDhY3MJZlbkrw2jRFc+3L6aUSImCJQwRmKxg6+cHOTLA9oyQ== 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)(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)(2616005)(6116002)(478600001)(1076002)(107886003)(3846002)(6666003)(956004)(97736004)(39060400002)(50466002)(7736002)(53936002)(16526019)(66066001)(47776003)(26005)(486005)(486005)(6486002)(6512007)(316002)(305945005)(105586002)(42882007)(6506007)(386003)(68736007)(59450400001)(69596002)(106356001)(72206003)(25786009)(2906002)(52116002)(53416004)(81166006)(8676002)(36756003)(476003)(2870700001)(50226002)(4326008)(5660300001)(81156014)(23676004)(8936002);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: =?utf-8?B?MTtDWTRQUjA3TUIyOTk4OzIzOmNpYndlMzFrTlFTa09kekFqbkdBSVQrMHFE?= =?utf-8?B?aFdBVDcwcXhXVE8ycnZiNWh0cm5TZjNHTnhDWk9UaWRYaVlZZEFYcFFEM0or?= =?utf-8?B?Qk5WWmUzQU1MOGdWNWdNRmdHbEhnVng2U3FuVk5kNmhaNk0yazBjTmxjUEkz?= =?utf-8?B?NkVlYVZDUkFuNFBIb3U5UmtCYm92VGJLc21uT1d3SmFtVFdGNmdjbGxYL2ps?= =?utf-8?B?M3B3VDJrZFZ1VWhRRXVaTFRjbjVmYVczMDNRMy85Y0JzckhmMkNqSDVJT2dp?= =?utf-8?B?ZUhwRCtaSWdFb1RrdENWTitnc1gvNEZLWFVZclBoVTNEUTJWNER2aUt6ZEJv?= =?utf-8?B?WjhMZGwwRkZZSmFmazJlclZnM3ZmUGdEdjd4U3RRTTZma0VuWVNQRDV3MG9L?= =?utf-8?B?WjBzUThkYmtFMUhQSmw1NGROQmYyZEp2bmVRUW1nTnJURUoxaG5YL012b2Ny?= =?utf-8?B?dEhnY1lJdCtab0U4NkwzVktEWjM0dlZhRXNxSlJ4UGNQTGNjMG50ZEcxUmJk?= =?utf-8?B?R0loT3JGREdUeDBBWC91K1QyYTZuaEtaQSs0bmdRWXA3TUxSdmtDNHZWNFFS?= =?utf-8?B?a2xSaW93bE10VU1XMU9JNG84aVFGdHJFWjVVaDlXWVp5ZWpVU2V5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ZWOS/PoqqkCQVOgpyAofjGUT7dPuQLQi2dCjtl+x8pk=;24:7GGdJATw5VHPOPTApHj45ncmvWpGNYBwpz3L/KvH7QlFNcFAqVTCiSvKviMCQhiyBk0edqfRZ/s+tVYiA6u/jVvnwwAU/mM6lovpV2vlYhA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR07MB2998;7:uAB1VoXBZDS2QWAu7q6jIREIZ3OzRD0sj2KMbemUNXpT9/qFokeAfsBW9XAelbEMl0E4Nt+50+ZFmG1WBhfjbjzpTcZ3kKNJwkzOm7engXsRJxbpN0QLXbiBAF+XaM+m4xNHM6O6Qfsn478UiWSv+3iJEApjqtjed/GN1BX2iF4nrJ96kjWK+bbd/N28M9NYqWQnMdv/zmEBhrPwXNm//3kpHyS/67K1VgSNm7+rmWvP4X9iZymZ8gk9jj4nZ+bX X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 15:07:46.3733 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e4303e70-70ae-4cbd-a323-08d593f47fe7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB2998 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. 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 | 108 +++++++++++- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 196 ++++++++++++++++++++-- drivers/net/ethernet/cavium/thunder/thunder_bgx.h | 17 +- 5 files changed, 366 insertions(+), 29 deletions(-) -- 2.14.3