switch.c (022bba63c3ca02fc074c68b4e7b949bddcf320d6) switch.c (09f92341681a23346c456938bcb2670de2cd99d4)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Handling of a single switch chip, part of a switch fabric
4 *
5 * Copyright (c) 2017 Savoir-faire Linux Inc.
6 * Vivien Didelot <vivien.didelot@savoirfairelinux.com>
7 */
8
9#include <linux/if_bridge.h>
10#include <linux/netdevice.h>
11#include <linux/notifier.h>
12#include <linux/if_vlan.h>
13#include <net/switchdev.h>
14
15#include "dsa_priv.h"
16#include "port.h"
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Handling of a single switch chip, part of a switch fabric
4 *
5 * Copyright (c) 2017 Savoir-faire Linux Inc.
6 * Vivien Didelot <vivien.didelot@savoirfairelinux.com>
7 */
8
9#include <linux/if_bridge.h>
10#include <linux/netdevice.h>
11#include <linux/notifier.h>
12#include <linux/if_vlan.h>
13#include <net/switchdev.h>
14
15#include "dsa_priv.h"
16#include "port.h"
17#include "slave.h"
17
18static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds,
19 unsigned int ageing_time)
20{
21 struct dsa_port *dp;
22
23 dsa_switch_for_each_port(dp, ds)
24 if (dp->ageing_time && dp->ageing_time < ageing_time)

--- 1007 unchanged lines hidden ---
18
19static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds,
20 unsigned int ageing_time)
21{
22 struct dsa_port *dp;
23
24 dsa_switch_for_each_port(dp, ds)
25 if (dp->ageing_time && dp->ageing_time < ageing_time)

--- 1007 unchanged lines hidden ---