X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fnet%2Fdsa.h;h=2217a3f817f8e5072954941d34d089be28b1e136;hb=372ee16386bbf6dc5eeb0387e1ede963debba82a;hp=20b3087ad1933d2c731876387224bc509c8c6d47;hpb=c080b460df960f1dc3b35d009392458b2861e801;p=deliverable%2Flinux.git diff --git a/include/net/dsa.h b/include/net/dsa.h index 20b3087ad193..2217a3f817f8 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -32,6 +32,8 @@ enum dsa_tag_protocol { #define DSA_MAX_SWITCHES 4 #define DSA_MAX_PORTS 12 +#define DSA_RTABLE_NONE -1 + struct dsa_chip_data { /* * How to access the switch configuration registers. @@ -139,6 +141,7 @@ struct dsa_switch_tree { struct dsa_port { struct net_device *netdev; struct device_node *dn; + unsigned int ageing_time; }; struct dsa_switch { @@ -327,6 +330,7 @@ struct dsa_switch_driver { /* * Bridge integration */ + int (*set_ageing_time)(struct dsa_switch *ds, unsigned int msecs); int (*port_bridge_join)(struct dsa_switch *ds, int port, struct net_device *bridge); void (*port_bridge_leave)(struct dsa_switch *ds, int port);