net: dsa: b53: Export b53_configure_vlan()
bcm_sf2 and b53 replicate the same operations: clear all VLANs and set their ports to the default VLAN tag (1 for these devices) so export the b53 function doing just that. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Этот коммит содержится в:

коммит произвёл
David S. Miller

родитель
641da8ed3d
Коммит
5c1a6eaf0d
@@ -613,8 +613,9 @@ static void b53_enable_mib(struct b53_device *dev)
|
||||
b53_write8(dev, B53_MGMT_PAGE, B53_GLOBAL_CONFIG, gc);
|
||||
}
|
||||
|
||||
static int b53_configure_vlan(struct b53_device *dev)
|
||||
int b53_configure_vlan(struct dsa_switch *ds)
|
||||
{
|
||||
struct b53_device *dev = ds->priv;
|
||||
struct b53_vlan vl = { 0 };
|
||||
int i;
|
||||
|
||||
@@ -637,6 +638,7 @@ static int b53_configure_vlan(struct b53_device *dev)
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(b53_configure_vlan);
|
||||
|
||||
static void b53_switch_reset_gpio(struct b53_device *dev)
|
||||
{
|
||||
@@ -751,7 +753,7 @@ static int b53_apply_config(struct b53_device *priv)
|
||||
/* disable switching */
|
||||
b53_set_forwarding(priv, 0);
|
||||
|
||||
b53_configure_vlan(priv);
|
||||
b53_configure_vlan(priv->ds);
|
||||
|
||||
/* enable switching */
|
||||
b53_set_forwarding(priv, 1);
|
||||
|
Ссылка в новой задаче
Block a user