common/mlx5: add memory reclaim glue function
authorSuanming Mou <suanmingm@mellanox.com>
Mon, 1 Jun 2020 06:09:42 +0000 (14:09 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 3 Jun 2020 15:19:26 +0000 (17:19 +0200)
commitbebee850162d92015a67894d2937c944c677421e
tree6488171ca0972838b7f73df8347f99b64d924c2b
parent79aa430721b1e33706f71c84a6a718469b8f9053
common/mlx5: add memory reclaim glue function

While flow destroyed, rdma-core may still cache some resources for more
efficiently flow recreate. In case the peak time that millions of flows
created and destroyed, the cached resources will be very huge.

Currently, rdma-core provides the new function to configure the flow
resources not to be cached. Add the memory reclaim function to avoid
too many resources be cached.

This is the first patch for the memory reclaim. A new devarg will be
added to PMD to support the reclaim can be configured.

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/common/mlx5/Makefile
drivers/common/mlx5/linux/meson.build
drivers/common/mlx5/linux/mlx5_glue.c
drivers/common/mlx5/linux/mlx5_glue.h