[dpdk-dev] [PATCH 4/4] net/sfc: support regioned NIC DMA memory mapping type
Ferruh Yigit
ferruh.yigit at intel.com
Fri Nov 5 20:05:15 CET 2021
On 11/5/2021 8:33 AM, Andrew Rybchenko wrote:
> From: Viacheslav Galaktionov <viacheslav.galaktionov at oktetlabs.ru>
>
> DMA on SN1022 SoC requires extra mapping of the memory via MCDI.
> The mapping is expensive on datapath, so make it a build-time option.
> Usage of build-time option is acceptable since it is required in
> very specific case only.
>
Not really sure if it is acceptable.
The change does not look trivial, it touches in many areas with ifdef blocks,
cluttering the code.
Even it is in datapath, it should be possible to have another datapath
function that is only set for the specific device, even perhaps by automatically
detecting the device, not needing a compile or runtime flag.
> Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov at oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
> Reviewed-by: Ivan Malov <ivan.malov at oktetlabs.ru>
<...>
More information about the dev
mailing list