Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1255544imw; Tue, 5 Jul 2022 06:31:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tiI6+s3836bHhsLJeSKmOswDbhoYQGmhHFyYGmDEWetyp5qgrtQ1G9npb+zni8tkbCADwZ X-Received: by 2002:a63:90c7:0:b0:40d:3c0d:33f4 with SMTP id a190-20020a6390c7000000b0040d3c0d33f4mr29604729pge.334.1657027867984; Tue, 05 Jul 2022 06:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027867; cv=none; d=google.com; s=arc-20160816; b=Bh0EmnNn8x2wmqiiwrCY0R/NGnwOD1YXQPi+QW0WgqXm18HJoM/DzgwQf7bTdQ6Yhz gNYLY9n7nIxcm0U7+BzpU5tX2/tJVcNm8U7MgH5aYsL+aoPNkjl3M2f5B9koLEaQwFcJ +8dKZ5zDFZDoArRpnHJ0SBQRBc3wH0kt688umZlQgEYyGW6cnG+VYtj15eQuIEYA9Eqt QvsOfhCT0R/BdWHnsa9+4SQ+urL52+K4VFAz/Z8w3GwwBZxPK9o8IIjZjLroN809qbeC ITUPng9ZNL/rMrp87Cc4lMopbOZaMfPpUp7kmWkXw86tlAVpGydfgHU/r2gVe6gL6NBv TqJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IfVFPj7jfBM2Kx069r16rrSzCGHjdFKlAv16zvYWsq8=; b=YzcC6xPa1KCyaMAKX4YbFWAtvsrENQhekx+ypfhRWv24Xq0UAFPBzTRq3ohZi0AECH ElWn18X4BO/L0kB1CChDRrFhaxH8FtAAvIqHHNxedfoKEWlZ9it8gctq05ebIzyW88w+ 9OryAWaZoPI5cYOQ9NzBv7cHOHi7nnIJaDhLOd3qNYh0x7s/2iqrDgekQdeOxrj/acq8 SrXTXBY86+mvBYqq89DCNQjTFO0ACjNJJKyEcJw8Sfjf6Hdil4jo/V/RbmLgH72TeDdq p+zogOR+TIYVvR4sRMojmFTN1xpEc8eACM/MiCEecFpkEjuPQUocAPpLJF6ynTbS1Y3F +u/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VX+lNMgz; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a17090aeb0d00b001ef900e9d84si4543003pjz.17.2022.07.05.06.30.56; Tue, 05 Jul 2022 06:31:07 -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=@linuxfoundation.org header.s=korg header.b=VX+lNMgz; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237982AbiGEM0r (ORCPT + 99 others); Tue, 5 Jul 2022 08:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236804AbiGEMSP (ORCPT ); Tue, 5 Jul 2022 08:18:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7704B1A040; Tue, 5 Jul 2022 05:13:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BD41AB817D3; Tue, 5 Jul 2022 12:13:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B1A9C341C7; Tue, 5 Jul 2022 12:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657023217; bh=fc03KRv4n05doHcwdHMzyIPbV+2wmIbCP3pcCivNDTA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VX+lNMgz9EigBGo67j9SyrQK/VBsWcDjn/miS0iSmgChR3upELJ1S2lUupASZte8m lekcRr2ulFL1LXIkdrMkIDjQRiu41sgKFU3j57YIG3ey8SNyR6QNgBX2Qswre/t9QN cycfsDsEBM9/ov/hZZCaBfZ19e2AipGXxU+nHOms= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eli Cohen , "Michael S. Tsirkin" Subject: [PATCH 5.15 38/98] vdpa/mlx5: Update Control VQ callback information Date: Tue, 5 Jul 2022 13:57:56 +0200 Message-Id: <20220705115618.671566885@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115617.568350164@linuxfoundation.org> References: <20220705115617.568350164@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 From: Eli Cohen commit 40f2f3e94178d45e4ee6078effba2dfc76f6f5ba upstream. 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 Message-Id: <20220613075958.511064-1-elic@nvidia.com> Signed-off-by: Michael S. Tsirkin Acked-by: Jason Wang --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c @@ -1698,6 +1698,8 @@ static void mlx5_vdpa_set_vq_cb(struct v 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; } static void mlx5_cvq_notify(struct vringh *vring)