Re: [PATCH net-next v10 0/2] Add ZTE DingHai Ethernet PF driver

[email protected]
Newsgroups gmane.linux.kernel,gmane.linux.network
Message-ID <178598040988.599522.8462097247667886071.git-patchwork-notify@kernel.org>
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <[email protected]>:

On Sun, 2 Aug 2026 16:00:48 +0800 (CST) you wrote:
> From: Junyang Han <[email protected]>
> 
> This series adds initial support for the ZTE DingHai Ethernet controller,
> a high-performance PCIe Ethernet device supporting SR-IOV, hardware
> offloading, and advanced virtualization features.
> 
> Changes from v9:
> - Makefile: remove unnecessary ccflags-y -I$(src).
> - zxdh_pf_pci_init(): dma_set_mask_and_coherent() never fails for
>   DMA_BIT_MASK(64).Just call it once.
> - zxdh_pf_probe(): reorder local variable declarations in reverse
>   xmas tree order.Don't print dev_err on devlink_alloc() failure.
> - Remove redundant initialization of fields in kzalloc'ed structs
>   (bar_chan_valid, vepa).
> - en_pf.h: drop unused includes,forward declaration of struct
>   devlink, unused enum zxdh_coredev_type, and unused struct fields
>   (bar_chan_valid, vepa, irq_lock, lock mutex, coredev_type).
> - Reply to Sashiko's review comments:
>   (1) zxdh_pf_map_capability(): validate the BAR index against
>       ZXDH_PF_MAX_BAR_VAL right after re-reading it from config space.
>   (2) zxdh_pf_map_capability(): bound-check length + offset (instead of
>       minlen + offset) against the BAR size before mapping, so the reported
>       *len never exceeds the actually mapped region and later MMIO accesses
>       cannot run past the pci_iomap_range() boundary.
>   (3) Search capabilities with IORESOURCE_MEM only (common/notify/device
>       cfg), matching the pci_request_selected_regions(IORESOURCE_MEM) call,
>       so a capability located in an I/O BAR is never mapped without having
>       been requested.
>   (4) zxdh_pf_notify_cfg_init(): rewrite
>       "if (notify_length + (notify_offset % PAGE_SIZE) <= PAGE_SIZE)" as a
>       subtraction: notify_length <= PAGE_SIZE - (notify_offset % PAGE_SIZE).
>       This removes the addition, so there is no integer wrap a
>       malicious length could exploit to bypass the check.
> 
> [...]

Here is the summary with links:
  - [net-next,v10,1/2] dinghai: add ZTE network driver support
    https://git.kernel.org/netdev/net-next/c/b8180f7977aa
  - [net-next,v10,2/2] dinghai: add hardware register access and PCI capability scanning
    (no matching commit)

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.