Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2102620ybm; Thu, 23 May 2019 11:23:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYQspyNBbCcsgF+wCJf/UF7IpDlP9LbIIEr/N2qxciz/71K5jVNUU/5cWe2lflGbtjaB85 X-Received: by 2002:a17:902:ac82:: with SMTP id h2mr41002665plr.303.1558635809978; Thu, 23 May 2019 11:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558635809; cv=none; d=google.com; s=arc-20160816; b=VVDKWjbs97+y5nPyOKShz8ViiEidB1DeAH3CNnMUL65pQ1jvwiwXJa7D70VTvZZOuF mFyU2Lbss79tEwXXhsu6w4GfbviBd9v11YqyAEHTIWVp12VlgwTUwQ3TxtZNEbDchdPL Ah+kfxdKZKFf7SZzHtt2EK30QNTvDREo5OdV785lVjyQvAstFelzUji/jc4gUTcjqyBU wuWxf2sM68cfk1SC+474Xrucwp7VYWB0fsNojkhqso7C6qXeSRVsvW5+Nc3cH4TVytiI Kx9ZXtkruvyRTh6anVtA3Qm5K6QPr1hpSF8KzVNE9+d7p34i/pJR706dRGbxBCVYIvBY 3WkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=BpudeZUFrlSCrP2B/P8tYhvppT/zfprdXnWGePwKYEY=; b=LL16QaDLmLRy7x9bMfSOvefnfW4/VdrroFVRJ1kNVngWCgTYCRecCF7eNjoAg5SG1c OTTm9nO2+uG+g1ZPxjRiFjmOI0mGjNfoSBiFnBU+5onkNovf2Dry4qXOoMzv8dI9J4G2 XRQm5gEUeZlGdLVIbd+6gPvo+czegk7zNNcSB8+2atlOVMzZlzi/4kbuZVXqGG3HUgV9 1cDV7B2IFueVAiDdMc8MdKcjwfy0sUbo1RzJsrzzm+WlYRkZC70NU+HgApPP9dxHcd2j ntQie7gm81O/1uJXyN1YgKo+P/caRMhuWjQ5tM8qCHUkRPARL7S+WREh5GkZEFJm+Ucl ZhGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C1Kj7Y5G; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f63si105025pfh.120.2019.05.23.11.23.15; Thu, 23 May 2019 11:23:29 -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=@linaro.org header.s=google header.b=C1Kj7Y5G; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731488AbfEWSWF (ORCPT + 99 others); Thu, 23 May 2019 14:22:05 -0400 Received: from mail-lj1-f178.google.com ([209.85.208.178]:45203 "EHLO mail-lj1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731403AbfEWSWF (ORCPT ); Thu, 23 May 2019 14:22:05 -0400 Received: by mail-lj1-f178.google.com with SMTP id r76so912491lja.12 for ; Thu, 23 May 2019 11:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=BpudeZUFrlSCrP2B/P8tYhvppT/zfprdXnWGePwKYEY=; b=C1Kj7Y5GxYetF4BJIrBU3mwtg+1jBuR+s4zE+5z8qJiCT051vUBnhotoYeT0lGeAcT 8LYq3F8uCk/jcJOeXib9IPyvXg5tc5UFAAUQOMn5w99pNQEv8LGobIdeAcVpsVa8pNgg yd3gQg2gVJhejNSJywyYV8zN5fNUTBQdP1sOmxbAK/jI8xvU6RPge0d3foYEKc7zPoej wI0mYtO2kf6DTRKPKbSSh7R/8Y7FsBbExCoKynTia0WGJR+4JMioi7pquR0PHQWEDdQO MFgdv7KWcTUQLu31FzrE4Y1uOe9g8PxhU847czYZJXvuNpR4zBzE0aTKmpC/F5cmvZ7Y H3Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BpudeZUFrlSCrP2B/P8tYhvppT/zfprdXnWGePwKYEY=; b=Aup9dC1u0D5y9gvdBy+Abree12/VNHdwSKA8+5u/ryqS14RtCzzSwO3jwVVRmrS2GP XA9IjpyPWJ0W9rAgGfqUk407APKmT2+kgcPdowvQvwHUQA9Bba9S9coJYrqZA9owlugu 0Ug4M34k8c2l6PdiNEol0t5uYHV/EHmfR4slspuGjpd6QSnakPkaKRzLAaFYBNWB10Tv KIpiDfjoWjj0CshG5ZjMdr2MKqziJGEoKEnhJx8mBUApvCoOYby0wSnJrbme6R4BZP/h 9ID7KmSS/LxHq7koOkmNrhwvypUIslT6GH0MglRgdFmfo/towVBsQEcAYkT4GHkSzor4 wCvw== X-Gm-Message-State: APjAAAUmlHAdGJb5wcE0SZG2jPu0IXMd5VA8dIdSo7x4zv4FEBNFnEO5 TUo3PJybOSSjF+S6ZSAEgnyFyg== X-Received: by 2002:a05:651c:150:: with SMTP id c16mr49794302ljd.65.1558635723403; Thu, 23 May 2019 11:22:03 -0700 (PDT) Received: from localhost.localdomain (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id n26sm59904lfi.90.2019.05.23.11.22.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 11:22:02 -0700 (PDT) From: Ivan Khoronzhuk To: grygorii.strashko@ti.com, hawk@kernel.org, davem@davemloft.net Cc: ast@kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, xdp-newbies@vger.kernel.org, ilias.apalodimas@linaro.org, netdev@vger.kernel.org, daniel@iogearbox.net, jakub.kicinski@netronome.com, john.fastabend@gmail.com, Ivan Khoronzhuk Subject: [PATCH net-next 0/3] net: ethernet: ti: cpsw: Add XDP support Date: Thu, 23 May 2019 21:20:32 +0300 Message-Id: <20190523182035.9283-1-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset add XDP support for TI cpsw driver and base it on page_pool allocator. It was verified on af_xdp socket drop, af_xdp l2f, ebpf XDP_DROP, XDP_REDIRECT, XDP_PASS, XDP_TX. 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 Link on previous RFC: https://lkml.org/lkml/2019/4/17/861 Also regular tests with iperf2 were done in order to verify impact on regular netstack performance, compared with base commit: https://pastebin.com/JSMT0iZ4 Based on net-next/master 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 | 570 +++++++++++++++++++++--- drivers/net/ethernet/ti/cpsw_ethtool.c | 55 ++- drivers/net/ethernet/ti/cpsw_priv.h | 9 +- drivers/net/ethernet/ti/davinci_cpdma.c | 122 +++-- drivers/net/ethernet/ti/davinci_cpdma.h | 6 +- drivers/net/ethernet/ti/davinci_emac.c | 18 +- 7 files changed, 675 insertions(+), 106 deletions(-) -- 2.17.1