From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965360AbcIVUuL (ORCPT ); Thu, 22 Sep 2016 16:50:11 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:35036 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965090AbcIVUuI (ORCPT ); Thu, 22 Sep 2016 16:50:08 -0400 From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn , John Crispin , Vivien Didelot Subject: [PATCH net-next 0/4] net: dsa: add port fast ageing Date: Thu, 22 Sep 2016 16:49:20 -0400 Message-Id: <20160922204924.16229-1-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.10.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Today the DSA drivers are in charge of flushing the MAC addresses associated to a port when its STP state changes from Learning or Forwarding, to Disabled or Blocking or Listening. This makes the drivers more complex and hides this generic switch logic. This patchset introduces a new optional port_fast_age operation to dsa_switch_ops, to move this logic to the DSA layer and keep drivers simple. b53 and mv88e6xxx are updated accordingly. Vivien Didelot (4): net: dsa: add port STP state helper net: dsa: add port fast ageing net: dsa: b53: implement DSA port fast ageing net: dsa: mv88e6xxx: implement DSA port fast ageing drivers/net/dsa/b53/b53_common.c | 31 ++++++++++----------------- drivers/net/dsa/mv88e6xxx/chip.c | 45 ++++++++++++++++++++-------------------- include/net/dsa.h | 2 ++ net/dsa/slave.c | 35 ++++++++++++++++++++++++------- 4 files changed, 64 insertions(+), 49 deletions(-) -- 2.10.0