mbox series

[net-next,0/3] net: hns3: add three optimizations for mailbox handling

Message ID 1584503827-12025-1-git-send-email-tanhuazhong@huawei.com
Headers show
Series net: hns3: add three optimizations for mailbox handling | expand

Message

Huazhong Tan March 18, 2020, 3:57 a.m. UTC
This patchset includes three code optimizations for mailbox handling.

[patch 1] adds a response code conversion.
[patch 2] refactors some structure definitions about PF and
VF mailbox.
[patch 3] refactors the condition whether PF responds VF's mailbox.

Huazhong Tan (1):
  net: hns3: refactor mailbox response scheme between PF and VF

Jian Shen (1):
  net: hns3: add a conversion for mailbox's response code

Yufeng Mo (1):
  net: hns3: refactor the mailbox message between PF and VF

 drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h    |  54 ++-
 .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 387 ++++++++++-----------
 .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c  | 311 +++++++++--------
 .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h  |   4 +-
 .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c   |  50 +--
 5 files changed, 420 insertions(+), 386 deletions(-)