[PATCH v5 12/17] net/nbl: add nbl device rxtx queue setup and release ops
Stephen Hemminger
stephen at networkplumber.org
Wed Aug 20 00:35:06 CEST 2025
On Tue, 19 Aug 2025 03:22:32 -0700
Dimon Zhao <dimon.zhao at nebula-matrix.com> wrote:
> -static int nbl_res_txrx_start_tx_ring(void *priv,
> - struct nbl_start_tx_ring_param *param,
> - u64 *dma_addr)
> +static inline u16 nbl_prep_tx_ehdr_leonis(void *priv, struct rte_mbuf *mbuf)
> {
Get the prototype right in earlier patch.
And don't use void * to hide the private data. Instead always use a structure pointer.
That way you avoid potential type confusion bugs.
More information about the dev
mailing list