mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
net: dsa: b53: Add bridge support
Add support for HW bridging by tying the ports together in the same port VLAN mask when they belong to the same bridge, and isolating them to be alone with the CPU port when they are not. Propagate STP states from the bridge layer to the switch's HW mapping when requested. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
1da6df85c6
commit
ff39c2d686
@@ -27,6 +27,7 @@
|
||||
#include "b53_regs.h"
|
||||
|
||||
struct b53_device;
|
||||
struct net_device;
|
||||
|
||||
struct b53_io_ops {
|
||||
int (*read8)(struct b53_device *dev, u8 page, u8 reg, u8 *value);
|
||||
@@ -64,6 +65,8 @@ enum {
|
||||
#define B53_N_PORTS_25 6
|
||||
|
||||
struct b53_port {
|
||||
u16 vlan_ctl_mask;
|
||||
struct net_device *bridge_dev;
|
||||
};
|
||||
|
||||
struct b53_device {
|
||||
|
||||
Reference in New Issue
Block a user