[PATCH v2 2/9] bpf: document ethdev callback threading limitations

Konstantin Ananyev konstantin.v.ananyev at yandex.ru
Tue Oct 20 08:54:22 CEST 2026



20.10.2026 00:35, Stephen Hemminger пишет:
> On Mon, 19 Oct 2026 22:10:11 +0100
> Konstantin Ananyev <konstantin.v.ananyev at yandex.ru> wrote:
>
>>> Document the data plane limitation in the file docstring of
>>> rte_bpf_ethdev.h: packet callback execution expects only one
>>> thread per port/queue pair at a time, making concurrent bursts
>>> (such as with RTE_ETH_TX_OFFLOAD_MT_LOCKFREE, shared RX queues,
>>> or multi-threaded software PMDs) unsupported.
>> Not sure what do you mean by:
>> 'shared RX queues' and 'multi-threaded software PMDs'. Can you probably
>> clarify?
> The restriction is that: rte_bpf_eth_tx_elf_load() can not be be used with RTE_ETH_TX_OFFLOAD_MT_LOCKFREE
> because if that offload is set, application is allowed to share a single transmit queue across multiple lcore.
I understand that part.
My question was: what Marat means by:

'shared RX queues' and 'multi-threaded software PMDs'

AFAIK, we don't have such things right now.
Correct me, if I am wrong.
  

>
> It would be better if the attempts to load on such a device failed.
> But in the is not enough because at least in theory a user could enable
> the offload later by reconfiguring the device.



More information about the dev mailing list