mbox series

[V4,net-next,0/4] net: hns3: updates for -next

Message ID 1605514854-11205-1-git-send-email-tanhuazhong@huawei.com
Headers show
Series net: hns3: updates for -next | expand

Message

tanhuazhong Nov. 16, 2020, 8:20 a.m. UTC
There are several updates relating to the interrupt coalesce for
the HNS3 ethernet driver.

#1 adds support for QL(quantity limiting, interrupt coalesce
   based on the frame quantity).
#2 queries the maximum value of GL from the firmware instead of
   a fixed value in code.
#3 adds support for 1us unit GL(gap limiting, interrupt coalesce
   based on the gap time).
#4 renames gl_adapt_enable in struct hns3_enet_coalesce to fit
   its new usage.

change log:
V4 - remove #5~#10 from this series, which needs more discussion.
V3 - fix a typo error in #1 reported by Jakub Kicinski.
     rewrite #9 commit log.
     remove #11 from this series.
V2 - reorder #2 & #3 to fix compiler error.
     fix some checkpatch warnings in #10 & #11.

previous version:
V3: https://patchwork.ozlabs.org/project/netdev/cover/1605151998-12633-1-git-send-email-tanhuazhong@huawei.com/
V2: https://patchwork.ozlabs.org/project/netdev/cover/1604892159-19990-1-git-send-email-tanhuazhong@huawei.com/
V1: https://patchwork.ozlabs.org/project/netdev/cover/1604730681-32559-1-git-send-email-tanhuazhong@huawei.com/


Huazhong Tan (4):
  net: hns3: add support for configuring interrupt quantity limiting
  net: hns3: add support for querying maximum value of GL
  net: hns3: add support for 1us unit GL configuration
  net: hns3: rename gl_adapt_enable in struct hns3_enet_coalesce

 drivers/net/ethernet/hisilicon/hns3/hnae3.h        |  1 +
 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c |  1 +
 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c    | 99 ++++++++++++++++------
 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h    | 17 +++-
 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 71 +++++++++++++---
 .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h |  8 ++
 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c    |  7 ++
 .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h   |  8 ++
 .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c  |  7 ++
 9 files changed, 182 insertions(+), 37 deletions(-)

Comments

Jakub Kicinski Nov. 17, 2020, 7:42 p.m. UTC | #1
On Mon, 16 Nov 2020 16:20:50 +0800 Huazhong Tan wrote:
> There are several updates relating to the interrupt coalesce for
> the HNS3 ethernet driver.
> 
> #1 adds support for QL(quantity limiting, interrupt coalesce
>    based on the frame quantity).
> #2 queries the maximum value of GL from the firmware instead of
>    a fixed value in code.
> #3 adds support for 1us unit GL(gap limiting, interrupt coalesce
>    based on the gap time).
> #4 renames gl_adapt_enable in struct hns3_enet_coalesce to fit
>    its new usage.
> 
> change log:
> V4 - remove #5~#10 from this series, which needs more discussion.
> V3 - fix a typo error in #1 reported by Jakub Kicinski.
>      rewrite #9 commit log.
>      remove #11 from this series.
> V2 - reorder #2 & #3 to fix compiler error.
>      fix some checkpatch warnings in #10 & #11.

Applied, thanks!
Jesse Brandeburg Nov. 23, 2020, 10:55 p.m. UTC | #2
Huazhong Tan wrote:

> There are several updates relating to the interrupt coalesce for
> the HNS3 ethernet driver.
> 
> #1 adds support for QL(quantity limiting, interrupt coalesce
>    based on the frame quantity).
> #2 queries the maximum value of GL from the firmware instead of
>    a fixed value in code.
> #3 adds support for 1us unit GL(gap limiting, interrupt coalesce
>    based on the gap time).
> #4 renames gl_adapt_enable in struct hns3_enet_coalesce to fit
>    its new usage.
> 
> change log:
> V4 - remove #5~#10 from this series, which needs more discussion.
> V3 - fix a typo error in #1 reported by Jakub Kicinski.
>      rewrite #9 commit log.
>      remove #11 from this series.
> V2 - reorder #2 & #3 to fix compiler error.
>      fix some checkpatch warnings in #10 & #11.


For the series:
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>