From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: [PATCH net-next 0/5] net: dsa: bcm_sf2: Store rules in lists Date: Tue, 6 Nov 2018 12:58:36 -0800 Message-ID: <20181106205841.14308-1-f.fainelli@gmail.com> Cc: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, davem@davemloft.net, pablo@netfilter.org, Florian Fainelli To: netdev@vger.kernel.org Return-path: Received: from mail-pg1-f194.google.com ([209.85.215.194]:38268 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbeKGGZw (ORCPT ); Wed, 7 Nov 2018 01:25:52 -0500 Received: by mail-pg1-f194.google.com with SMTP id f8-v6so6348953pgq.5 for ; Tue, 06 Nov 2018 12:58:46 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: Hi all, This patch series changes the bcm-sf2 driver to keep a copy of the inserted rules as opposed to using the HW as a storage area for a number of reasons: - this helps us with doing duplicate rule detection in a faster way, it would have required a full rule read before - this helps with Pablo's on-going work to convert ethtool_rx_flow_spec to a more generic flow rule structure by having fewer code paths to convert to the new structure/helpers - we need to cache copies to restore them during drive resumption, because depending on the low power mode the system has entered, the switch may have lost all of its context Florian Fainelli (5): net: dsa: bcm_sf2: Keep copy of inserted rules net: dsa: bcm_sf2: Split rule handling from HW operation net: dsa: bcm_sf2: Restore CFP rules during system resume net: dsa: bcm_sf2: Get rid of unmarshalling functions net: systemport: Restore Broadcom tag match filters upon resume drivers/net/dsa/bcm_sf2.c | 6 + drivers/net/dsa/bcm_sf2.h | 3 + drivers/net/dsa/bcm_sf2_cfp.c | 497 ++++++++------------- drivers/net/ethernet/broadcom/bcmsysport.c | 12 + drivers/net/ethernet/broadcom/bcmsysport.h | 1 + 5 files changed, 204 insertions(+), 315 deletions(-) -- 2.17.1