net: hns: add attribute port-mode-offset for dsaf port node
Port mode offset for each dsaf port is different. The current code is not so readability. This patch adds configuration named port-mode-offset to make the code simple and more readability. If port-mode-offset isn't exists, default value 0 will be used. Signed-off-by:Daode Huang <huangdaode@hisilicon.com> Signed-off-by:
Yisen Zhuang <Yisen.Zhuang@huawei.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 10 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h 1 addition, 0 deletionsdrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c 19 additions, 25 deletionsdrivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c
Please register or sign in to comment