From patchwork Tue Feb 15 13:08:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 12747069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 683D1C433EF for ; Tue, 15 Feb 2022 13:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237992AbiBONIs (ORCPT ); Tue, 15 Feb 2022 08:08:48 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235971AbiBONIr (ORCPT ); Tue, 15 Feb 2022 08:08:47 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B486EC0853; Tue, 15 Feb 2022 05:08:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 44ABB61702; Tue, 15 Feb 2022 13:08:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB5F4C340EB; Tue, 15 Feb 2022 13:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644930516; bh=PoalmMqaKc50oi1r+URZvae0kyLA/F8Qd8LE+/pth4A=; h=From:To:Cc:Subject:Date:From; b=ixQMXt3i2vm3vL3QnsZHWmpC7IHLiztayu75L6ENwQ4SbvOl2kEB3xbTJ+kmIqZn9 MF+r885IjLlcrAPgzuqgGD+HytsMZmcJ61SBia6KW1m035bnpJcgLt/vdLjVwYCIBw PNBuA59scesqySQvldesPivEyQNDQv71AVGNkPe9XOSXgR8ZQ3A60gTfepMa3jy+Ia YLdUMqcEwwGHnZivKaqU7AgsOoDlRBl5PPxkpivuCCi2srocLv9w0YDCIvfMMeBjbO gjMB53MMn4LwJVxqElb2SH4E8IO86ZkDkyABHKZ0sCrJ7zw7diH0DjduoA5+KvL+8+ j7y3IFQSayd4g== From: Lorenzo Bianconi To: bpf@vger.kernel.org, netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, ast@kernel.org, daniel@iogearbox.net, brouer@redhat.com, toke@redhat.com, pabeni@redhat.com, echaudro@redhat.com, lorenzo.bianconi@redhat.com, toshiaki.makita1@gmail.com, andrii@kernel.org Subject: [PATCH v2 bpf-next 0/3] introduce xdp frags support to veth driver Date: Tue, 15 Feb 2022 14:08:08 +0100 Message-Id: X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Introduce xdp frags support to veth driver in order to allow increasing the mtu over the page boundary if the attached xdp program declares to support xdp fragments. Enable NETIF_F_ALL_TSO when the device is running in xdp mode. This series has been tested running xdp_router_ipv4 sample available in the kernel tree redirecting tcp traffic from veth pair into the mvneta driver. Changes since v1: - always consider skb paged are non-writable - fix tpt issue with sctp - always use napi if we are running in xdp mode in veth_xmit Lorenzo Bianconi (3): net: veth: account total xdp_frame len running ndo_xdp_xmit veth: rework veth_xdp_rcv_skb in order to accept non-linear skb veth: allow jumbo frames in xdp mode drivers/net/veth.c | 204 +++++++++++++++++++++++++++++---------------- include/net/xdp.h | 14 ++++ net/core/xdp.c | 1 + 3 files changed, 146 insertions(+), 73 deletions(-)