Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2335091yba; Fri, 19 Apr 2019 17:35:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCWri3I5GIzoF7GqJJ+ME6YFGyR97h/BIo78wiDYKL2xoE9QbzI6mCuk7n8u+5dU9naz95 X-Received: by 2002:a63:6983:: with SMTP id e125mr6267142pgc.370.1555720554305; Fri, 19 Apr 2019 17:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555720554; cv=none; d=google.com; s=arc-20160816; b=Z6CQi9E4W8vakVoLlve/qK2wzY4aA4GHXmjnBvM/V4gmIn0tbZTDT2lpBJtpymKadD QYt/vW4Vmea8p45fFpHAeP86h3o9+rFIej6zyjNZsLsFBCLm1xIoMPNDwX97Y/2eNcUt V6bGxLSJHfDMvVsQqdNZqbTOiG3ry/qkEtt+7PIH3MzH8eTeTJUPrjAGAP73vneXG8Ey QSIRpBBeQwyCmXPTxaNLTB+bd0MbXi9X6MY1yLBV8JL80NjMhS4aQn+jdwUGnGeCt9pa nLfLqcIlN6D09TEII3FABHX2ueGxDw3XUMNNWXZLG4WD9mKkiWzfdhDzaccBC5n/ONdZ qesQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=2BcTRh2OlH2bDsIqds7rgbXDXhkpNvmzKs9G89ttX7A=; b=A4srHqDVZgEk7HKuLo6T/M5mwyMWfwkQE72zFXBAoRf68qGJS6QqmTlYqVJbDTjtQw Bds/t+TXIG3/zMF5QY8R3U3nUfI8C1ZZCZ0nLVFN/QSFJi0rMYvtfmiPHR20Ku95EeEC 2WrSaEzOOH2vu1lLQWiJOdEW3hDuIAVjxEBaAIhFnHnKxHYGSyXfzRi/xc9N4dO3/8P5 gejWZOFHVMTPZ7U6GlWP5+QeBiVvxdOfsTbug3oHjFy2CM3BrGk14LCwVHl3Fr7E5Wb9 Q29ISq8uFerHXYhh5L96pQvEMPrLCde0wN4k2v1qPXjm2lkAHgb8iW1O5XcdR2DH0624 kNTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sux2xyij; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m72si6884297pfj.279.2019.04.19.17.35.38; Fri, 19 Apr 2019 17:35:54 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sux2xyij; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727572AbfDTAdq (ORCPT + 99 others); Fri, 19 Apr 2019 20:33:46 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47330 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbfDTAdq (ORCPT ); Fri, 19 Apr 2019 20:33:46 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3J8OhPS064730; Fri, 19 Apr 2019 03:24:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1555662283; bh=2BcTRh2OlH2bDsIqds7rgbXDXhkpNvmzKs9G89ttX7A=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=sux2xyijJzYYqP/Y+eWCrSNESQlmPwBP/j8iGd6gV/4GfAs2GuUScgtZVcBIJG3kQ eEPnWWGxuZUJbS386hJbrhri/YF2iCail1CYyB9UZ0NLqFAkkwU6aLIUmT6DR3ZLti TAc4nR9EY6nbrPrg/iLG4X/7OCFcCmxewuJb+B9E= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3J8OhW3002607 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Apr 2019 03:24:43 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 19 Apr 2019 03:24:43 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 19 Apr 2019 03:24:43 -0500 Received: from [172.22.188.35] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3J8OdZp087910; Fri, 19 Apr 2019 03:24:40 -0500 Subject: Re: [RFC PATCH 0/3] net: ethernet: ti: cpsw: Add XDP support To: Ivan Khoronzhuk CC: , , , , , , , , , , "Nori, Sekhar" References: <20190417174942.11811-1-ivan.khoronzhuk@linaro.org> From: Grygorii Strashko Message-ID: <844a80e9-95fb-7afd-6be3-5e6a0be2ed00@ti.com> Date: Fri, 19 Apr 2019 11:24:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190417174942.11811-1-ivan.khoronzhuk@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ivan, On 17.04.19 20:49, Ivan Khoronzhuk wrote: > This patchset is RFC adding XDP support for TI cpsw driver that is > based on page_pool allocator. It was verified with af_xdp sockets > and on xdp drop. For XDP redirect to another interface it's under > verification, still not sure about all cases that should be verified. > Also regular tests with iperf2 were done in order to verify impact on > regular netstack performance, compared with base commit from > net-next/master: 432bc230700f86801cffa5e159e05dea6229f722 > > It was verified with following configs enabled: > CONFIG_JIT=y > CONFIG_BPFILTER=y > CONFIG_BPF_SYSCALL=y > CONFIG_XDP_SOCKETS=y > CONFIG_BPF_EVENTS=y > CONFIG_HAVE_EBPF_JIT=y > CONFIG_BPF_JIT=y > CONFIG_CGROUP_BPF=y > > iperf2 UDP RX summary (packet size / Mbps): > +--------------------------------------------------------------+ > | pkt_size/rate | 1024 | 1500 | 1470 | 64 | 128 | 512 | 256 | > |---------------+------+------+------+------+------+-----+-----| > | base commit | 561 | 470 | 796 | 35 | 70.1 | 281 | 140 | > |---------------+------+------+------+------+------+-----+-----| > | XDP patched | 563 | 455 | 808 | 35 | 70.2 | 282 | 141 | > +--------------------------------------------------------------+ > > iperf2 UDP TX summary (packet size / Mbps): > +--------------------------------------------------------------+ > | pkt_size/rate | 1024 | 1500 | 1470 | 64 | 128 | 512 | 256 | > |---------------+------+------+------+------+------+-----+-----| > | base commit | 555 | 666 | 736 | 34.5 | 70.3 | 281 | 140 | > |---------------+------+------+------+------+------+-----+-----| > | XDP patched | 558 | 696 | 759 | 35.2 | 69.2 | 279 | 140 | > +--------------------------------------------------------------+ > > iperf2 TCP summary (window size / Mbps): > +------------------------------------------------------------+ > | window size/rate | 16 | 32 | 64 | 128 | 8 | 256 | > |------------------+------+------+------+------+------+------| > | base commit | 753 | 887 | 931 | 932 | 676 | 932 | > |------------------+------+------+------+------+------+------| > | XDP patched | 823 | 888 | 932 | 933 | 669 | 933 | > +------------------------------------------------------------+ > > For af_xdp socket type verification several generic changes should be added > that can be seen here (rough fixes, for samples related seems like last version > of samples is more integrated with libbpf api, so should be rebased, > witch I will send as RFC separately): > https://github.com/ikhorn/af_xdp_stuff/tree/af_xdp_armv7 > > Ivan Khoronzhuk (3): > net: ethernet: ti: davinci_cpdma: add dma mapped submit > net: ethernet: ti: davinci_cpdma: return handler status > net: ethernet: ti: cpsw: add XDP support > > drivers/net/ethernet/ti/Kconfig | 1 + > drivers/net/ethernet/ti/cpsw.c | 552 +++++++++++++++++++++--- > drivers/net/ethernet/ti/davinci_cpdma.c | 117 +++-- > drivers/net/ethernet/ti/davinci_cpdma.h | 6 +- > drivers/net/ethernet/ti/davinci_emac.c | 18 +- > 5 files changed, 591 insertions(+), 103 deletions(-) > Thanks for your patches. It's great to have XDP support. I have no objection to this series in general, but i'm not xdp expert, so it can be moved forward when you resolve comments from other reviewers. -- Best regards, grygorii