Received: by 10.192.165.156 with SMTP id m28csp1511554imm; Wed, 18 Apr 2018 10:48:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/SVgJ53PbiISTPgF/RWJzB0tzRV8qeKvY/T0Uj80DlvAAoY1fHvAbSIZnVvr2BM+tlb4hi X-Received: by 2002:a17:902:7405:: with SMTP id g5-v6mr2997357pll.4.1524073700123; Wed, 18 Apr 2018 10:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524073700; cv=none; d=google.com; s=arc-20160816; b=nGa2FgPRHKuMniYQ3yxfbF7+bnl5vq1T1cAEquqgfOonS9lFXG+OoaDV4tuW55bO7b n8kjJ9lTELZT6FoZU0eX+b3aHkyXL05WYHE8NPXFKBGNrrCdlJi9L+f2czZ8Kp/3SKkT kWQLaTg9lKAl7tvy4/lC8Jjrb/fSIUWXWV5xzfPADhyk+d0HbBNi4lWZbCFj4BIN1KxH q6p5zd865QRnziqzDyawYb44lQdQfvgSNv03xcvfC7bWCsjjs6GzKTnZ9OeiWZzebYBP h5yaAcH6I9AX2D/V+u4o3rYp6vbKSbqu5gIAN6+xDO8eyl5bGaa2JBWJ7q1d1zX/1Q8A IfxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=aHdWIP7U+RelifcECDdpx4jPaFavTtEoEWm3VwgprZw=; b=w5nuRxdu7dWjPXqfiL6oOniC64u3bJxpvK2tupdnnFVc/IUcfETATKN+aCf9bQZPGs Le9CJaSj5zqnCjZ6Gju8fC81iD8GNZH6qUI0sRhhDORP8kzBSYV/qa6H9aNiFicWa/EP YTmi9bYadsIXOQypzww2TKjI/kmM7J1tqb2Kt/P5sqUGE9WShMciElhtt5IuNPP8ECif NWAkNUyUNIbws3PpLEMj/hDrmkFWCzhceUjWRP+YUF1SsgNPynQ4fHMqgSyA1UQesP6s oEWKSHZKj3MtTKkDnbWoDIEL1luDC2QYLi1xYJJD0l/vnUmO6aMv8QhnkIj/csUyc/Iu t9NQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az8-v6si1794425plb.153.2018.04.18.10.48.05; Wed, 18 Apr 2018 10:48:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752649AbeDRRqy (ORCPT + 99 others); Wed, 18 Apr 2018 13:46:54 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:46046 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeDRRqx (ORCPT ); Wed, 18 Apr 2018 13:46:53 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 452071438BF02; Wed, 18 Apr 2018 10:46:52 -0700 (PDT) Date: Wed, 18 Apr 2018 13:46:51 -0400 (EDT) Message-Id: <20180418.134651.2225112489265654270.davem@davemloft.net> To: mpatocka@redhat.com Cc: eric.dumazet@gmail.com, edumazet@google.com, joby.poriyath@citrix.com, bhutchings@solarflare.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org Subject: Re: [PATCH] net: don't use kvzalloc for DMA memory From: David Miller In-Reply-To: References: <3e65977e-53cd-bf09-bc4b-0ce40e9091fe@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 18 Apr 2018 10:46:53 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mikulas Patocka Date: Wed, 18 Apr 2018 12:44:25 -0400 (EDT) > The structure net_device is followed by arbitrary driver-specific data > (accessible with the function netdev_priv). And for virtio-net, these > driver-specific data must be in DMA memory. And we are saying that this assumption is wrong and needs to be corrected.