[PATCH net-next 09/10] net: hns: add attribute port-rst-offset for dsaf port node

2016-04-27 Thread Yisen Zhuang
The reset offset for each port in a dsaf is different. The current code is not so readability. This patch adds configuration named port-rst-offset to make the code simple and more readability. If this attribute isn't exists, default value of this attribute is equal to its port index. Signed-off-by

[PATCH net-next 09/10] net: hns: add attribute port-rst-offset for dsaf port node

2016-04-22 Thread Yisen Zhuang
The reset offset for each port in a dsaf is different. The current code is not so readability. This patch adds configuration named port-rst-offset to make the code more simple and readability. If this attribute doesn't exist, default value of this attribute is equal to its port index. Signed-off-b