net: add netdev_txq_bql_{enqueue, complete}_prefetchw() helpers
authorEric Dumazet <[email protected]>
Wed, 8 Oct 2014 15:19:27 +0000 (08:19 -0700)
committerDavid S. Miller <[email protected]>
Wed, 8 Oct 2014 20:08:04 +0000 (16:08 -0400)
commit535114539bb2c081b6680cb5a34be17e7b45df37
treef23c322826074ddd2eb0cbb84104210996746570
parent709c48b39ecf11a81f3820c13a828c330fd832b9
net: add netdev_txq_bql_{enqueue, complete}_prefetchw() helpers

Add two helpers so that drivers do not have to care of BQL being
available or not.

Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: Jim Davis <[email protected]>
Fixes: 29d40c903247 ("net/mlx4_en: Use prefetch in tx path")
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/mellanox/mlx4/en_tx.c
include/linux/netdevice.h