diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-01-06 18:32:21 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-01-06 18:32:21 +0000 |
commit | 5f69279dd608b54807714716cb9ff9e39f2e72c5 (patch) | |
tree | 69c4c2add0659077461d5118e2718b17edc07cba /target/linux/generic/files/include | |
parent | a09e713299e3490866b9ce38558de14849d80e3b (diff) | |
download | mtk-20170518-5f69279dd608b54807714716cb9ff9e39f2e72c5.zip mtk-20170518-5f69279dd608b54807714716cb9ff9e39f2e72c5.tar.gz mtk-20170518-5f69279dd608b54807714716cb9ff9e39f2e72c5.tar.bz2 |
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
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r-- | target/linux/generic/files/include/linux/switch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/switch.h b/target/linux/generic/files/include/linux/switch.h index eac35f9..4ada0e5 100644 --- a/target/linux/generic/files/include/linux/switch.h +++ b/target/linux/generic/files/include/linux/switch.h @@ -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); }; |