]> git.baikalelectronics.ru Git - 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)
commitbc7c7cc8973f2fd99791c08f451e37f1b43a6ebe
treeced59807448f488d408e5fe28a89b563357676bb
parentbb6b2b5f91340c353f067af1722994e6d09c6a72
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