Skip to contentSkip to conversation

question about drivers/net/ethernet/mellanox/mlx4/en_tx.c

DISCUSSION Julia Lawall 2 participants 3 messages Aug 27, 2013 – Aug 28, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 10 lines · Julia Lawall

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

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

#2 lore raw
Quoted 8 lines · Amir Vadai
Quoted 7 lines · Julia Lawall

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.

Quoted 7 lines
Quoted 3 lines

thanks,
julia

Hi Julia,

I guess you meant to en_rx.c and not en_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