Re: [OpenWrt-Devel] [PATCH 2/2] swconfig: add API for setting port link speed

2015-12-31 Thread Rafał Miłecki
On 29 December 2015 at 14:02, Rafał Miłecki wrote: > @@ -595,6 +614,33 @@ swconfig_parse_ports(struct sk_buff *msg, struct nlattr > *head, > } > > static int > +swconfig_parse_link(struct sk_buff *msg, struct nlattr *nla, > + struct switch_port_link *link) > +{ > + struc

[OpenWrt-Devel] [PATCH 2/2] swconfig: add API for setting port link speed

2015-12-29 Thread Rafał Miłecki
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 --- .../linux/generic/files/drivers/net/phy/swconfig.c | 63 +- target/linux/generic/files/include/linux/switch.h | 2 + 2 files changed