swconfig: add API for setting port link speed

Some switches can force link speed for a port. Let's add API that will
allow drivers to export this feature.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48142
This commit is contained in:
Rafał Miłecki
2016-01-06 18:32:21 +00:00
parent a09e713299
commit 5f69279dd6
2 changed files with 50 additions and 1 deletions

View File

@@ -95,6 +95,8 @@ struct switch_dev_ops {
int (*get_port_link)(struct switch_dev *dev, int port,
struct switch_port_link *link);
int (*set_port_link)(struct switch_dev *dev, int port,
struct switch_port_link *link);
int (*get_port_stats)(struct switch_dev *dev, int port,
struct switch_port_stats *stats);
};