Received: by 2002:aa6:cad3:0:b0:147:287a:cb84 with SMTP id e19csp813885lky; Mon, 27 Sep 2021 03:37:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdyiczX4XMMysJip77ZpWIwksdScdjWXhqL90aVZhWExy3pXykFYS9YxMe5TYThqfntC/W X-Received: by 2002:a17:90a:4306:: with SMTP id q6mr18862406pjg.202.1632739077914; Mon, 27 Sep 2021 03:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632739077; cv=none; d=google.com; s=arc-20160816; b=VtklutGTtAIZ+bKRkLAhb5rgW5UJbD5uk97dlg39szpP4XDueDjRmt+nSuV5QoP3is iojJOEGgY+6WtG5+kFTuxgBkPH3vwYQCZpKPDcMkjUAPxojd0/O7olNLYTLcx2Vy5O6o mumD2LNqB1GBU7DSsUgFLVwppYpSHnK+XvmUjLqJZAocP//Sf8DvEgcW982GfUNmrAC+ vZjefIJxhPQf0DEtRfahAtmLkXJGSP9gyZF6sH132eupdX26gIZseuckAspzNhXQGJZi SGiQK3QU/mmprO8altOvX8IQBuXs2ZZLmDY/Tc4CCbJo5MSSPGCjGz/7GcKE/YnIBdkd DJ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hPcoSfISBwgrMcGuhcb0aAcLEaKSf2xroV1zxbFfhaI=; b=CSvEtM+rLOzY8w0zyN1SZ6ZbpOOZ7WcDHwl+HjBCyHdG7iMMEtdwUTxWhmPd2mucus hMYLjY/A7g01rUXEXQnOr1BZs+IWAZQusTIyxBCmSAhzcmuYICByz+84YrDb+OWauTwq pQ2GDNjmGmPsOYwlwHtUqZ9TOoUVabId196hZp0P1JsUnUVbF6VD0t9yQVdb+4PDyvKu F8FYe8OLQO3/fjKK3PyKOAokMSISVcDlU97mDFN+2kSy7UYicD1dmlS0ZhA1H0NCEG7e 8U3Le3VU4/dNx8wNEafvBWJNNN8tUQaMxm3RmL9676iAz/L185yarpLB1KLATD2HE89A ECOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GuDK0DSM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si7406143plc.260.2021.09.27.03.37.42; Mon, 27 Sep 2021 03:37:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GuDK0DSM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233819AbhI0KiV (ORCPT + 99 others); Mon, 27 Sep 2021 06:38:21 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:44958 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233784AbhI0KiU (ORCPT ); Mon, 27 Sep 2021 06:38:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632739002; 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=hPcoSfISBwgrMcGuhcb0aAcLEaKSf2xroV1zxbFfhaI=; b=GuDK0DSMuXeGhejlG4rF0BKgXazo5dZmJfnjO6M+x42Sa9xuqDAeee+XP7XEIqsNhDeYUy 2+OyBzRrP7wfSfPif5CdCOozsXHYrFAY1cc3u/ktX11BlcstiV7TFp31OkWUVP3fGSggBg 33UZpPSsSK+P9bte3lAglD7nyzmOb7U= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-470-YgjS9GgkM1KF3SteQtz_LQ-1; Mon, 27 Sep 2021 06:36:40 -0400 X-MC-Unique: YgjS9GgkM1KF3SteQtz_LQ-1 Received: by mail-wr1-f69.google.com with SMTP id m1-20020a056000180100b0015e1ec30ac3so13915632wrh.8 for ; Mon, 27 Sep 2021 03:36:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hPcoSfISBwgrMcGuhcb0aAcLEaKSf2xroV1zxbFfhaI=; b=zaGQAy3ndMnfurNCdNkm4cQ8hRm/b1S3KNIrTCOH9DbSy8wiBW+GsRt+SdSpn2Q3QJ JvdI8vKE029KzhxM5G/mCh6iWnYI3bayLbhiILJl5EVOEeO1h3ry2PUmnBaCJVelraVd Kgz8UKhzTUUTukrC5V6dBx/g2WYIGFX0EQF2MQkGO2RGF57YFQ8QCVunpZVcd4FmUmTn fhT2tRKx8NOLq/b2IUmc5PURc5K+fRFn36v8NqMaI8DyRBCnlGsFfBBj9Fb9T+90MiYV +DBIqnNWamCyZ//f4xtzkT/EIIjBq8yPxdVZPQo/HHHOCW1Go94dlNBQ6Zsfanm2Ynn3 CPdg== X-Gm-Message-State: AOAM533Qtl7Fhln1GIm/k8C3CCssn0f4SirSOW6UJ3OYXHdaMauW+nBL Jig25eZxKqjn6SC5ohSecQ70FNgkficB1oxGfDPvOCkJONUNkODjd+PZdP8INQkZH/fB72MtSAM i9AXAVzj6vgard2v/MZNr4nCQ X-Received: by 2002:a5d:4eca:: with SMTP id s10mr27305635wrv.255.1632738999484; Mon, 27 Sep 2021 03:36:39 -0700 (PDT) X-Received: by 2002:a5d:4eca:: with SMTP id s10mr27305617wrv.255.1632738999277; Mon, 27 Sep 2021 03:36:39 -0700 (PDT) Received: from redhat.com ([2.55.16.138]) by smtp.gmail.com with ESMTPSA id r9sm16003737wru.2.2021.09.27.03.36.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 03:36:38 -0700 (PDT) Date: Mon, 27 Sep 2021 06:36:34 -0400 From: "Michael S. Tsirkin" To: Jason Wang Cc: Wu Zongyong , virtualization , linux-kernel , wei.yang1@linux.alibaba.com Subject: Re: [PATCH v3 7/7] eni_vdpa: add vDPA driver for Alibaba ENI Message-ID: <20210927063000-mutt-send-email-mst@kernel.org> References: <296014fa3b765f2088a3183bf04e09863651a584.1632313398.git.wuzongyong@linux.alibaba.com> <20210926032434.GA32570@L-PF27918B-1352.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 26, 2021 at 12:18:26PM +0800, Jason Wang wrote: > > > I wonder if the following can work with ENI: > > > > > > -device virtio-net-pci,mrg_rxbuf=off > > > > > > ? > > > > ENI didn't work. > > I will remove F_MRG_RXBUF when get_features. > > I think we need to fail FEATURE_OK if F_MRG_RXBUF is not negotiated. > Since VERSION_1 requires a fixed header length even if F_MRG_RXBUF is > not negotiated. > > But this trick doesn't come for free. If some driver doesn't support > mrg_rxbuf, it won't work. > > Thanks Yea. Ugh. Down the road I think we'll add legacy support to vdpa on strongly ordered systems. Doing it in userspace is just too messy imho. But yes, this kind of hack is probably ok for weakly ordered systems. BTW we need to set VIRTIO_F_ORDER_PLATFORM, right? -- MST