[PATCH net-next 0/8] net: hns3: add some cleanups & optimizations

From: Huazhong Tan
Date: Sat Oct 19 2019 - 04:03:42 EST


This patchset includes some cleanups and optimizations for the HNS3
ethernet driver.

[patch 1/8] removes unused and unnecessary structures.

[patch 2/8] uses a ETH_ALEN u8 array to replace two mac_addr_*
field in struct hclge_mac_mgr_tbl_entry_cmd.

[patch 3/8] optimizes the barrier used in the IO path.

[patch 4/8] introduces macro ring_to_netdev() to get netdevive
from struct hns3_enet_ring variable.

[patch 5/8] makes struct hns3_enet_ring to be cacheline aligned

[patch 6/8] adds a minor cleanup for hns3_handle_rx_bd().

[patch 7/8] removes linear data allocating for fraglist SKB.

[patch 8/8] clears hardware error when resetting.

---
note:
In previous patchset, there are some bugfixes which needs below
new feature, which is only in 'net-next' but not in 'net' now:
net: hns3: support tx-scatter-gather-fraglist feature
net: hns3: add support for spoof check setting

So, these bugfixes will be upstreamed when the patch needed is
on 'net' tree.
---

Guojia Liao (1):
net: hns3: optimized MAC address in management table.

Jian Shen (1):
net: hns3: log and clear hardware error after reset complete

Yunsheng Lin (6):
net: hns3: remove struct hns3_nic_ring_data in hns3_enet module
net: hns3: minor optimization for barrier in IO path
net: hns3: introduce ring_to_netdev() in enet module
net: hns3: make struct hns3_enet_ring cacheline aligned
net: hns3: minor cleanup for hns3_handle_rx_bd()
net: hns3: do not allocate linear data for fraglist skb

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 24 +--
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 204 ++++++++-------------
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 20 +-
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 33 ++--
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 4 +-
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 +-
6 files changed, 111 insertions(+), 180 deletions(-)

--
2.7.4