]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: dsa: rename port_*_bridge routines
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Sun, 13 Mar 2016 20:21:32 +0000 (16:21 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 20:05:31 +0000 (16:05 -0400)
Rename DSA port_join_bridge and port_leave_bridge routines to
respectively port_bridge_join and port_bridge_leave in order to respect
an implicit Port::Bridge namespace.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/dsa/dsa.txt
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c
include/net/dsa.h
net/dsa/slave.c

index 974e9c387d1e92edc01d51b4ed655a0882dc9ce6..3b196c304b73242ca17912ba931e878712c5b3c0 100644 (file)
@@ -521,12 +521,12 @@ See Documentation/hwmon/sysfs-interface for details.
 Bridge layer
 ------------
 
-- port_join_bridge: bridge layer function invoked when a given switch port is
+- port_bridge_join: bridge layer function invoked when a given switch port is
   added to a bridge, this function should be doing the necessary at the switch
   level to permit the joining port from being added to the relevant logical
   domain for it to ingress/egress traffic with other members of the bridge.
 
-- port_leave_bridge: bridge layer function invoked when a given switch port is
+- port_bridge_leave: bridge layer function invoked when a given switch port is
   removed from a bridge, this function should be doing the necessary at the
   switch level to deny the leaving port from ingress/egress traffic from the
   remaining bridge members. When the port leaves the bridge, it should be aged
index 3f627598f277924b0f418ab23da7b4ac11737e9c..4bcc9ebf5e06946e9d609bdbbdafee86352d57f3 100644 (file)
@@ -1387,8 +1387,8 @@ static struct dsa_switch_driver bcm_sf2_switch_driver = {
        .port_disable           = bcm_sf2_port_disable,
        .get_eee                = bcm_sf2_sw_get_eee,
        .set_eee                = bcm_sf2_sw_set_eee,
-       .port_join_bridge       = bcm_sf2_sw_br_join,
-       .port_leave_bridge      = bcm_sf2_sw_br_leave,
+       .port_bridge_join       = bcm_sf2_sw_br_join,
+       .port_bridge_leave      = bcm_sf2_sw_br_leave,
        .port_stp_update        = bcm_sf2_sw_br_set_stp_state,
        .port_fdb_prepare       = bcm_sf2_sw_fdb_prepare,
        .port_fdb_add           = bcm_sf2_sw_fdb_add,
index d72ccbdf53ec832cdc123960821e09e46c5b6d8c..c0164b98fc08d45517329d70e1b61030aea83290 100644 (file)
@@ -103,8 +103,8 @@ struct dsa_switch_driver mv88e6171_switch_driver = {
 #endif
        .get_regs_len           = mv88e6xxx_get_regs_len,
        .get_regs               = mv88e6xxx_get_regs,
-       .port_join_bridge       = mv88e6xxx_port_bridge_join,
-       .port_leave_bridge      = mv88e6xxx_port_bridge_leave,
+       .port_bridge_join       = mv88e6xxx_port_bridge_join,
+       .port_bridge_leave      = mv88e6xxx_port_bridge_leave,
        .port_stp_update        = mv88e6xxx_port_stp_update,
        .port_vlan_filtering    = mv88e6xxx_port_vlan_filtering,
        .port_vlan_prepare      = mv88e6xxx_port_vlan_prepare,
index a41fa5043d77a883a45351044db6ee605ea5d25e..5f528abc8af1965ccf2f8e00a277e273e2acbed1 100644 (file)
@@ -324,8 +324,8 @@ struct dsa_switch_driver mv88e6352_switch_driver = {
        .set_eeprom             = mv88e6352_set_eeprom,
        .get_regs_len           = mv88e6xxx_get_regs_len,
        .get_regs               = mv88e6xxx_get_regs,
-       .port_join_bridge       = mv88e6xxx_port_bridge_join,
-       .port_leave_bridge      = mv88e6xxx_port_bridge_leave,
+       .port_bridge_join       = mv88e6xxx_port_bridge_join,
+       .port_bridge_leave      = mv88e6xxx_port_bridge_leave,
        .port_stp_update        = mv88e6xxx_port_stp_update,
        .port_vlan_filtering    = mv88e6xxx_port_vlan_filtering,
        .port_vlan_prepare      = mv88e6xxx_port_vlan_prepare,
index 26c0a3fa009a8a292a8c69601fdb4dc089ec250c..004e034184c1cca8c3b389b636b027a34102004a 100644 (file)
@@ -296,9 +296,9 @@ struct dsa_switch_driver {
        /*
         * Bridge integration
         */
-       int     (*port_join_bridge)(struct dsa_switch *ds, int port,
+       int     (*port_bridge_join)(struct dsa_switch *ds, int port,
                                    struct net_device *bridge);
-       int     (*port_leave_bridge)(struct dsa_switch *ds, int port);
+       int     (*port_bridge_leave)(struct dsa_switch *ds, int port);
        int     (*port_stp_update)(struct dsa_switch *ds, int port,
                                   u8 state);
 
index 49056d90b17954d5adf4fca2fd3c8a766163e920..52653d715f64d896045fb8249cc86ff77cc7ced0 100644 (file)
@@ -448,8 +448,8 @@ static int dsa_slave_bridge_port_join(struct net_device *dev,
 
        p->bridge_dev = br;
 
-       if (ds->drv->port_join_bridge)
-               ret = ds->drv->port_join_bridge(ds, p->port, br);
+       if (ds->drv->port_bridge_join)
+               ret = ds->drv->port_bridge_join(ds, p->port, br);
 
        return ret;
 }
@@ -461,8 +461,8 @@ static int dsa_slave_bridge_port_leave(struct net_device *dev)
        int ret = -EOPNOTSUPP;
 
 
-       if (ds->drv->port_leave_bridge)
-               ret = ds->drv->port_leave_bridge(ds, p->port);
+       if (ds->drv->port_bridge_leave)
+               ret = ds->drv->port_bridge_leave(ds, p->port);
 
        p->bridge_dev = NULL;