question about drivers/net/ethernet/mellanox/mlx4/en_tx.c
Subsystems (2)
Hello,
I was wondering why in drivers/net/ethernet/mellanox/mlx4/en_tx.c there are a number of uses of dma_sync_single_for_cpu without corresponding uses of dma_sync_single_for_device (for example in mlx4_en_rx_skb)? In most drivers they come together.
thanks,
julia
Quoted 10 lines · Julia Lawall
Hello,
I was wondering why in
drivers/net/ethernet/mellanox/mlx4/en_tx.cthere are a number of uses ofdma_sync_single_for_cpuwithout corresponding uses ofdma_sync_single_for_device(for example inmlx4_en_rx_skb)? In most drivers they come together.thanks,
julia
Hi Julia,
I guess you meant to en_rx.c and not en_tx.c
It looks like a bug.
The whole skb buffers allocation and mapping is expected to be overhauled soon - and this will be fixed as part of it.
Thanks,
Amir
Quoted 8 lines · Amir Vadai
Quoted 7 lines · Julia Lawall
Hello,
I was wondering why in
drivers/net/ethernet/mellanox/mlx4/en_tx.cthere are a number of uses ofdma_sync_single_for_cpuwithout corresponding uses ofdma_sync_single_for_device(for example inmlx4_en_rx_skb)? In most drivers they come together.
Quoted 7 lines
Quoted 3 lines
thanks,
juliaHi Julia,
I guess you meant to
en_rx.cand noten_tx.c
Oops, yes.
Quoted 3 lines
It looks like a bug.
The whole skb buffers allocation and mapping is expected to be overhauled soon - and this will be fixed as part of it.
OK, thanks for the explanation.
julia