Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp236022iog; Mon, 13 Jun 2022 01:14:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy7zlfWr4J2HBw7IGXGaLxBp1bec5Etup+7thub5mnFbgQt8VJAmqkFf1YZY+chpzyfIgT X-Received: by 2002:a05:6402:4248:b0:431:1133:aecb with SMTP id g8-20020a056402424800b004311133aecbmr50048732edb.222.1655108054051; Mon, 13 Jun 2022 01:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655108054; cv=none; d=google.com; s=arc-20160816; b=Q/AlOpPhWRQYksXbFCoosa7WTuOtRFoT0yJWkSLoZ0fdaujXa1TlBMrEChRXDzabf/ ILyAOrlKRhELN0s5t8S6L3hbOQn1cxHLOWVcDvBcEAHxqUeOGsqX8k7OUApNosLWo4a0 9v6k7FWR/srabWvUzrSLMAmKBip1PzEoxy2vSMzHffny//ossaPipdMASLY66GDS2ztC YyXrNpqNv7Enm6ETaF5sQ0qU2oFyzNzeWJUvwqcNTNxx/DQ/+PrTt7bfw0BOexkStX6C gcET6pt0t/k7chUtJimqpPujeKkKMtNm3MIQRTUwogqYK2e6hTsqx9wuOTe7KHgZJiGb tbHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=o3I59FmykDLK1GNxLZhq5VJ8322YMgbR0Ph4Y1aaHOU=; b=m3uF0aA9GDiC9rTSu3Q28c8MzS9HYNLaeHPlnvkMH4yNuewkeFogZYkw8pbsdn815S 8ZZ51iRdWI5zxMfKmIK+lyJGgQMx8ihyopQF0XZ3sGV+GJET1SmhtWoPVLzMUO7Z3WPu sHfCT+np7j5+p25kYd/QOjkKGSclW3I8TkQ+WilrWQjUIX8OJ3mSoZV8m0RWpKbfeyVZ 1i022JYwLoO4QW6Jyhy9PeAiv1w0ihsSI0XY0vRnwuQXG0+IXzECIfhGNG2Vf9rvFuu1 2QzJqW0PFPOd3HECbXw1uzDmRyg4WgmbiK6yZ0BotDN/LIhF3cBHh/VDAD7BFhQ1vIw2 Rzjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OeK1DQ9C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a05640227d400b0042df072b6a5si6551676ede.468.2022.06.13.01.13.47; Mon, 13 Jun 2022 01:14:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OeK1DQ9C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239591AbiFMILG (ORCPT + 99 others); Mon, 13 Jun 2022 04:11:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbiFMIKz (ORCPT ); Mon, 13 Jun 2022 04:10:55 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D8C951E3DD for ; Mon, 13 Jun 2022 01:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655107853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o3I59FmykDLK1GNxLZhq5VJ8322YMgbR0Ph4Y1aaHOU=; b=OeK1DQ9CYl9tEOEP/Mtqyx9djBXPkQ+NUqevEx7oA91BFHk8aTzz4FpLruu5TJCsCiEfuc xdEGV1CEWPG6OOVVIdiDtzIIdMHaQUr5WZ09g7gBAgrhtsBFvcl39KZaX6/urXg79plFWL Ngl6ALMDkjxue7hYQkJTew9FcQmVyEc= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-348-BC_hWUVqNTSSzjDbWs5Tyw-1; Mon, 13 Jun 2022 04:10:52 -0400 X-MC-Unique: BC_hWUVqNTSSzjDbWs5Tyw-1 Received: by mail-lj1-f199.google.com with SMTP id a16-20020a05651c211000b002557bb9091bso473593ljq.11 for ; Mon, 13 Jun 2022 01:10:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o3I59FmykDLK1GNxLZhq5VJ8322YMgbR0Ph4Y1aaHOU=; b=C39PtbQiXUfxeHsT7WL3AadTKpzpsOPsEtFRjKNdW3rJZewwCIMIU3TIInvOySkSUh oR9W7m31PuBIav8VRItelAcePMrP/QqqR0fDcWOMhqVkY44EYscnlli51WabN96Ck3St rY7jGFlZnTTun8e/OY83H1ZVdO6JLgKSoAYofYTXJb2DmlZwTH1swCIO2xy9qsNumTo2 l0dHTA1TikjXht+IF/K1ZvPv5iTgiOILOyinhIM38qAk8HijXyzwlZI2SZkTr9bxqm6A 2z4BLaHU14Wpoq7o01Aej4uCcYFPGfCiqYMUPjuj+o4CL2PkOX/zm1lZBQLbDoVqbMEO KO2A== X-Gm-Message-State: AOAM531NHK/kVPp+I4+qlRIwxgba3rdAuFQY/5MLXRj2As9FqouI4jln k31fgPyggF54KABXNCRKdnnsENgkYIAHo0mSrpEL7YmzOQbY8ug/fANabySPuA8EAHXaz1V6yuV /GuyJd2Q6MO0AWxcJwY0PpR8eDRb3IGkbf7RniZFj X-Received: by 2002:a19:4352:0:b0:479:5d1:3fef with SMTP id m18-20020a194352000000b0047905d13fefmr35944836lfj.411.1655107849673; Mon, 13 Jun 2022 01:10:49 -0700 (PDT) X-Received: by 2002:a19:4352:0:b0:479:5d1:3fef with SMTP id m18-20020a194352000000b0047905d13fefmr35944781lfj.411.1655107848004; Mon, 13 Jun 2022 01:10:48 -0700 (PDT) MIME-Version: 1.0 References: <20220613075958.511064-1-elic@nvidia.com> In-Reply-To: <20220613075958.511064-1-elic@nvidia.com> From: Jason Wang Date: Mon, 13 Jun 2022 16:10:36 +0800 Message-ID: Subject: Re: [PATCH 1/2] vdpa/mlx5: Update Control VQ callback information To: Eli Cohen Cc: mst , eperezma , virtualization , linux-kernel , Si-Wei Liu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 13, 2022 at 4:00 PM Eli Cohen wrote: > > The control VQ specific information is stored in the dedicated struct > mlx5_control_vq. When the callback is updated through > mlx5_vdpa_set_vq_cb(), make sure to update the control VQ struct. > > Fixes: 5262912ef3cf ("vdpa/mlx5: Add support for control VQ and MAC setting") > Signed-off-by: Eli Cohen > --- > drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c > index 1b6d46b86f81..789c078ff1af 100644 > --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c > +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c > @@ -1962,6 +1962,8 @@ static void mlx5_vdpa_set_vq_cb(struct vdpa_device *vdev, u16 idx, struct vdpa_c > struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev); > > ndev->event_cbs[idx] = *cb; > + if (is_ctrl_vq_idx(mvdev, idx)) > + mvdev->cvq.event_cb = *cb; > } > Acked-by: Jason Wang static void mlx5_cvq_notify(struct vringh *vring) > -- > 2.35.1 >