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 | 6261ed44b98fb860dec4c57e79fc826a669c552e (patch) | |
tree | 18013726a9b9c0db118d90f86f555bba64c843f6 /target/linux/generic/files/include | |
parent | bab5b7547cd15ca71f72c4aacbb1b723a669d89d (diff) | |
download | master-187ad058-6261ed44b98fb860dec4c57e79fc826a669c552e.tar.gz master-187ad058-6261ed44b98fb860dec4c57e79fc826a669c552e.tar.bz2 master-187ad058-6261ed44b98fb860dec4c57e79fc826a669c552e.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48142 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 eac35f9135..4ada0e5d33 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); }; |