From patchwork Wed Apr 20 20:17:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shirley Ma X-Patchwork-Id: 722981 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3KKHaLH016700 for ; Wed, 20 Apr 2011 20:17:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756027Ab1DTURe (ORCPT ); Wed, 20 Apr 2011 16:17:34 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:53837 "EHLO e8.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756026Ab1DTURd (ORCPT ); Wed, 20 Apr 2011 16:17:33 -0400 Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by e8.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p3KJq0DX023750; Wed, 20 Apr 2011 15:52:00 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p3KKHOdE1957914; Wed, 20 Apr 2011 16:17:25 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p3KKHN6v010674; Wed, 20 Apr 2011 16:17:23 -0400 Received: from [9.65.196.155] (sig-9-65-196-155.mts.ibm.com [9.65.196.155]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p3KKHHgA010225; Wed, 20 Apr 2011 16:17:18 -0400 Subject: [PATCH V3 8/8] Enable benet to support zerocopy From: Shirley Ma To: David Miller Cc: mst@redhat.com, Eric Dumazet , Avi Kivity , Arnd Bergmann , netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1303328216.19336.18.camel@localhost.localdomain> References: <1303328216.19336.18.camel@localhost.localdomain> Date: Wed, 20 Apr 2011 13:17:16 -0700 Message-ID: <1303330636.19336.61.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 20 Apr 2011 20:17:37 +0000 (UTC) Signed-off-by: Shirley Ma --- drivers/net/benet/be_main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 7cb5a11..d7b7254 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c @@ -2982,6 +2982,7 @@ static int __devinit be_probe(struct pci_dev *pdev, status = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); if (!status) { netdev->features |= NETIF_F_HIGHDMA; + netdev->features |= NETIF_F_ZEROCOPY; } else { status = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); if (status) {