]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
net/mlx4_en: Avoid calling bswap in tx fast path
authorEric Dumazet <edumazet@google.com>
Sun, 5 Oct 2014 09:35:11 +0000 (12:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 05:04:15 +0000 (01:04 -0400)
commit6a4e81211f475561ed87c613216f981fbef8b7fc
treeced59807448f488d408e5fe28a89b563357676bb
parent98b1634941e3efb0334f794efc79702839993d86
net/mlx4_en: Avoid calling bswap in tx fast path

- doorbell_qpn is stored in the cpu_to_be32() way to avoid bswap() in fast
  path.
- mdev->mr.key stored in ring->mr_key to also avoid bswap() and access to
  cold cache line.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h