net/mlx5: use buffer address for LKEY search
authorYongseok Koh <yskoh@mellanox.com>
Thu, 6 Jul 2017 18:41:08 +0000 (11:41 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 7 Jul 2017 09:50:02 +0000 (11:50 +0200)
commitb0b09384579357265db6cb01a0d1ee24b19b3163
treee98c28b6ff4e0fba466b775318cc5c71f2c2396d
parent88ff01ddfb13d580d5ca36b7a6fc1548bac769bf
net/mlx5: use buffer address for LKEY search

When searching LKEY, if search key is mempool pointer, the 2nd cacheline
has to be accessed and it even requires to check whether a buffer is
indirect per every search. Instead, using address for search key can reduce
cycles taken. And caching the last hit entry is beneficial as well.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_mr.c
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_rxtx.h
drivers/net/mlx5/mlx5_txq.c