diff options
author | Benoît Ganne <bganne@cisco.com> | 2021-03-17 16:16:16 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-04-14 15:59:18 +0000 |
commit | 1e88cb21be6e881b3b753e8733da802bb93e37f9 (patch) | |
tree | 5a83c408f22a67c4a56b20f3be380b3af5b6cc63 /src | |
parent | bdd6149cc4b4594a8dc9ae0f61dcccf838785143 (diff) |
rdma: remove redundant memory registration
The memory region is already registered right above, looks like a
copy/paste error.
Type: fix
Change-Id: I97aed821e719e1a34ac38c86d0473a8fdd671d4e
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/rdma/device.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/rdma/device.c b/src/plugins/rdma/device.c index a85686270f9..c218bf93c7f 100644 --- a/src/plugins/rdma/device.c +++ b/src/plugins/rdma/device.c @@ -788,12 +788,6 @@ rdma_dev_init (vlib_main_t * vm, rdma_device_t * rd, ethernet_mac_address_generate (rd->hwaddr.bytes); - if ((rd->mr = ibv_reg_mr (rd->pd, (void *) bm->buffer_mem_start, - bm->buffer_mem_size, - IBV_ACCESS_LOCAL_WRITE)) == 0) - return clib_error_return_unix (0, "Register MR Failed"); - rd->lkey = rd->mr->lkey; /* avoid indirection in datapath */ - /* * /!\ WARNING /!\ creation order is important * We *must* create TX queues *before* RX queues, otherwise we will receive |