blob: abf3977e34fdf27bcac666342df1829f4405b1f1 [file] [log] [blame]
Vladimir Oltean8aa9ebc2019-05-02 23:23:30 +03001/* SPDX-License-Identifier: GPL-2.0
2 * Copyright (c) 2019, Vladimir Oltean <olteanv@gmail.com>
3 */
4
5/* Included by drivers/net/dsa/sja1105/sja1105.h */
6
7#ifndef _NET_DSA_SJA1105_H
8#define _NET_DSA_SJA1105_H
9
Vladimir Oltean6666ceb2019-05-02 23:23:34 +030010#include <linux/etherdevice.h>
11
12#define ETH_P_SJA1105 ETH_P_DSA_8021Q
13
Vladimir Oltean8aa9ebc2019-05-02 23:23:30 +030014/* The switch can only be convinced to stay in unmanaged mode and not trap any
15 * link-local traffic by actually telling it to filter frames sent at the
16 * 00:00:00:00:00:00 destination MAC.
17 */
18#define SJA1105_LINKLOCAL_FILTER_A 0x000000000000ull
19#define SJA1105_LINKLOCAL_FILTER_A_MASK 0xFFFFFFFFFFFFull
20#define SJA1105_LINKLOCAL_FILTER_B 0x000000000000ull
21#define SJA1105_LINKLOCAL_FILTER_B_MASK 0xFFFFFFFFFFFFull
22
23#endif /* _NET_DSA_SJA1105_H */