From patchwork Tue Feb 20 11:40:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 136918 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3233943B56; Tue, 20 Feb 2024 12:40:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1ED00406BC; Tue, 20 Feb 2024 12:40:10 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 544B1406BC for ; Tue, 20 Feb 2024 12:40:08 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41JMRAJL026014; Tue, 20 Feb 2024 03:40:07 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=pfpt0220; bh=1PjgJ2/H qc8lOhlHHL6OJDjbwh08QN0/pS6bo7V1+wE=; b=S3w3RXEyD9sunMN+8aI7yzLn KUnfFtZXNpsM2MSyCAhvaSIxL10gxLElSfOSFZnA5lt+tR6MxUHUc3VT7USpflHm r73LS7yw7xwq/xX03+yYUrAfwYlGlrqrVJo7LQpiASvxwU/J3PF+UFeHefoeuQMH rCw1GaE1INC3dtfVhpfyK1ouaYlOYcWhTAKAtru37uszP9lWghGmw+vV840E+kkp aH77kamVyJODLVjM2RtiDkuOHdMltsT58LXRS1sZC1tyEk1tSC740X9kZ831R+TV sbq62IsMhGT9airnZMpB/7Nlno2oB7+CakhGaBy1A7GPwgrLzHFzUA3XKwXSCw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wcfsa1ppc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 20 Feb 2024 03:40:07 -0800 (PST) Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 20 Feb 2024 03:40:05 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 20 Feb 2024 03:40:05 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 9A90A3F7098; Tue, 20 Feb 2024 03:40:03 -0800 (PST) From: Nithin Dabilpuram To: Maxime Coquelin , Chenbo Xia CC: , , Nithin Dabilpuram Subject: [PATCH] net/virtio-user: add VIRTIO_F_ORDER_PLATFORM to feature list Date: Tue, 20 Feb 2024 17:10:01 +0530 Message-ID: <20240220114001.2228041-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: sCOhL_UFFRgt4llTAqlq0CFxTJcNGrb6 X-Proofpoint-ORIG-GUID: sCOhL_UFFRgt4llTAqlq0CFxTJcNGrb6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-20_06,2024-02-20_01,2023-05-22_02 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 VIRTIO_F_ORDER_PLATFORM is needed feature when working with real HW platforms that are exposing virtio-net devices via VDPA framework. This feature helps in having more real ordering requirements between descriptor updates and notification data updates. Hence enable it if the device supports the feature. Signed-off-by: Nithin Dabilpuram --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c index d395fc1676..6ece3c6621 100644 --- a/drivers/net/virtio/virtio_user/virtio_user_dev.c +++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c @@ -701,6 +701,7 @@ virtio_user_free_vrings(struct virtio_user_dev *dev) 1ULL << VIRTIO_F_VERSION_1 | \ 1ULL << VIRTIO_F_RING_PACKED | \ 1ULL << VIRTIO_F_NOTIFICATION_DATA | \ + 1ULL << VIRTIO_F_ORDER_PLATFORM | \ 1ULL << VIRTIO_NET_F_RSS) int