[PATCH] drivers/net: fix Tx packet prepare

Morten Brørup mb at smartsharesystems.com
Wed Nov 19 14:19:45 CET 2025


> From: Thomas Monjalon [mailto:thomas at monjalon.net]
> Sent: Wednesday, 19 November 2025 14.04
> 
> After removing callback checks from ethdev fast path,
> some drivers crashed because tx_pkt_prepare was set to NULL.
> 
> Some drivers (hns3, ngbe, txgbe) need to use
> rte_eth_tx_pkt_prepare_dummy
> when configuring queues.
> Other drivers (ntnic, softnic) does not need to set tx_pkt_prepare
> as it was set by eth_dev_set_dummy_fops() called by
> rte_eth_dev_allocate().
> 
> Bugzilla ID: 1834
> Fixes: 066f3d9cc21c ("ethdev: remove callback checks from fast path")
> 
> Reported-by: Jiawen Wu <jiawenwu at trustnetic.com>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> ---

Searching for "tx_pkt_prepare = NULL;" finds a few more, but they are all in driver cleanup functions, so...
Reviewed-by: Morten Brørup <mb at smartsharesystems.com>



More information about the dev mailing list