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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user