net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 14 Dec 2017 18:03:06 +0000 (18:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 15:55:34 +0000 (10:55 -0500)
commit424eb834a9be49273c4b32d0d6395dfdbe768a1a
tree952b4bdab1b27d9197b4d2c8cda5ec9cfcb72f27
parente963cb789a29b890678b58ef7da5d7c497510b7e
net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

Most of the NAPI handling interface, skb buffer management,
management of the RX/TX descriptors, ethool interface etc.
has quite a bit of code which is common to VF and PF driver.

This patch makes the exisitng PF's HNS3 ENET driver as the
common ENET driver for both Virtual & Physical Function. This
will help in reduction of redundancy and better management of
code.

Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
13 files changed:
drivers/net/ethernet/hisilicon/hns3/Makefile
drivers/net/ethernet/hisilicon/hns3/hnae3.c
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_dcbnl.c [deleted file]
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c [deleted file]
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h [deleted file]
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c [deleted file]
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c