]> git.openfabrics.org - ~aditr/compat-rdma.git/commit
qed: Backport Free RoCE ILT Memory on rmmod qedr
authorMichal Kalderon <michal.kalderon@cavium.com>
Thu, 1 Mar 2018 19:47:48 +0000 (21:47 +0200)
committerMichal Kalderon <michal.kalderon@cavium.com>
Thu, 1 Mar 2018 19:47:48 +0000 (21:47 +0200)
commit4c5949ba5d075d814e30dc18bd4cdd71b45c972f
tree2b90e4e52ae42f2626b22fbe92d3fe7928209973
parentda3fad44b4767859bc7a67d5eeedfca85e5366e8
qed: Backport Free RoCE ILT Memory on rmmod qedr

Rdma requires ILT Memory to be allocated for it's QPs.
Each ILT entry points to a page used by several Rdma QPs.
To avoid allocating all the memory in advance, the rdma
implementation dynamically allocates memory as more QPs are
added, however it does not dynamically free the memory.
The memory should have been freed on rmmod qedr, but isn't.
This patch adds the memory freeing on rmmod qedr (currently
it will be freed with qed is removed).

An outcome of this bug, is that if qedr is unloaded and loaded
without unloaded qed, there will be no more RoCE traffic.

The reason these are related, is that the logic of detecting the
first QP ever opened is by asking whether ILT memory for RoCE has
been allocated.

Fixes: dbb799c39717e7b7
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
linux-next-cherry-picks/0203-qed-Free-RoCE-ILT-Memory-on-rmmod-qedr.patch [new file with mode: 0644]