From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 89E89A034F; Fri, 8 Oct 2021 12:57:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E25241177; Fri, 8 Oct 2021 12:56:12 +0200 (CEST) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 45A12411E0 for ; Thu, 7 Oct 2021 20:44:49 +0200 (CEST) Received: by mail-pl1-f180.google.com with SMTP id g5so1454542plg.1 for ; Thu, 07 Oct 2021 11:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneconvergence.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KczELo0muTsIb0kn2zOBEJDiMqturn0jpVi2moMNJ6A=; b=CzzxzUx8MeTJ5Hjm7a2vXaRfjCJEvD6jOX4wgRe9g11jk77xBPEOsnK9AxLbHxX2xc lsez3yEOTP5W95vWrBza7YEvl+iGn2tAUyFLzwlnRrY2bGNTxJrclEByMa9LpzgJQ4CR TCBYiK0RKZ3xjy6jEgxJaOfaSmBcREaw5Xevs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KczELo0muTsIb0kn2zOBEJDiMqturn0jpVi2moMNJ6A=; b=Pn4wwdcjmPV13i2IBrQz1N2YFaYMa0x2EL1FhABYq+qNjeBE9LxQLwxalB8tnyQ/SB bisx96/ITcnJVFO6C+l7VgQI8jWlfJn8Eww+fJHMlxGV2Fiu38bmQ9eQhMEarh5UV+Or 8WoCQEdznOQUUgMBNAjomdtOXeGXWyN7C0wHrMKBlCFBOZuUN5jSC53/JC93xB8sVAoT PUWZTAF3a4hXpdg3oGjsrK1/16Rxbt5yWrAq2BVuI2kHuPt70f2qAbYotzuRwHXfrQyt ryOLsRHuG7YZzunovyjwsHZitNSdkImtVvkgKAAjmT15jMglRFkBe+o5eJmQxjavq+bX +3gg== X-Gm-Message-State: AOAM532oCjuHozqHWxceJCIB9ER4WvQPXEeggW8UJkfm8s/yetGZFtW3 2WoexljH62WvDmXhFAbNyJB37Q== X-Google-Smtp-Source: ABdhPJxRQSqQB4QbUIA5j+GyLQaDgRn0bwPrHRADusU9S4CvDd0Z+aN29LN7D0Y8zACI7lRU3EKs1Q== X-Received: by 2002:a17:90a:a41:: with SMTP id o59mr4997541pjo.243.1633632288559; Thu, 07 Oct 2021 11:44:48 -0700 (PDT) Received: from srikanth-ThinkPad-T450.domain.name ([136.185.113.102]) by smtp.gmail.com with ESMTPSA id c11sm3311586pji.38.2021.10.07.11.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 11:44:47 -0700 (PDT) From: Srikanth Kaka To: Matan Azrad , Viacheslav Ovsiienko Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Date: Fri, 8 Oct 2021 00:13:22 +0530 Message-Id: <20211007184350.73858-14-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211007184350.73858-1-srikanth.k@oneconvergence.com> References: <20211007184350.73858-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 08 Oct 2021 12:55:54 +0200 Subject: [dpdk-dev] [PATCH v2 13/41] net/mlx5: define MR callbacks X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Set the reg_mr and dereg_mr call backs Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_os.c b/drivers/net/mlx5/freebsd/mlx5_os.c index 39356f548f..1d8e627988 100644 --- a/drivers/net/mlx5/freebsd/mlx5_os.c +++ b/drivers/net/mlx5/freebsd/mlx5_os.c @@ -85,3 +85,20 @@ mlx5_os_get_dev_attr(void *ctx, struct mlx5_dev_attr *device_attr) return err; } + +/** + * Set the reg_mr and dereg_mr call backs + * + * @param reg_mr_cb[out] + * Pointer to reg_mr func + * @param dereg_mr_cb[out] + * Pointer to dereg_mr func + * + */ +void +mlx5_os_set_reg_mr_cb(mlx5_reg_mr_t *reg_mr_cb, + mlx5_dereg_mr_t *dereg_mr_cb) +{ + *reg_mr_cb = mlx5_mr_verbs_ops.reg_mr; + *dereg_mr_cb = mlx5_mr_verbs_ops.dereg_mr; +} -- 2.30.2