From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21285C4363C for ; Sun, 4 Oct 2020 21:04:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D8FD7206DD for ; Sun, 4 Oct 2020 21:04:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726345AbgJDVEP (ORCPT ); Sun, 4 Oct 2020 17:04:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbgJDVEO (ORCPT ); Sun, 4 Oct 2020 17:04:14 -0400 X-Greylist: delayed 9379 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 04 Oct 2020 14:04:14 PDT Received: from cornalina.dcc.ufmg.br (cornalina.dcc.ufmg.br [IPv6:2001:12f0:601:a902::155]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D441C0613CE for ; Sun, 4 Oct 2020 14:04:14 -0700 (PDT) Received: from turquesa.dcc.ufmg.br (turquesa.dcc.ufmg.br [IPv6:2001:12f0:601:a902::150]) by cornalina.dcc.ufmg.br (Postfix) with ESMTPS id 98DE020DCAE; Sun, 4 Oct 2020 18:04:09 -0300 (-03) Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) by turquesa.dcc.ufmg.br (Postfix) with ESMTPSA id 421D8C514A for ; Sun, 4 Oct 2020 18:04:09 -0300 (-03) Received: by mail-ot1-f43.google.com with SMTP id m13so6739512otl.9 for ; Sun, 04 Oct 2020 14:04:09 -0700 (PDT) X-Gm-Message-State: AOAM531EAS5/EaYfnZ/OxP6c7rKfF8WXmg/KKXXWv0JOyfRDZNBQI+yo YpoBhK46NZeAoflFBUdEtxjvtsGOMXMDLtuOuWo= X-Google-Smtp-Source: ABdhPJx1HI9L7c9GveOPxA5K5aTgp0+qvR6RWfu/bWqNDO3CHwVsriiwOJhupNiK/xNDwnLpeXT25o1+g+70MN0QKnE= X-Received: by 2002:a9d:3bb5:: with SMTP id k50mr8484252otc.252.1601845446866; Sun, 04 Oct 2020 14:04:06 -0700 (PDT) MIME-Version: 1.0 From: Matheus Salgueiro Castanho Date: Sun, 4 Oct 2020 18:03:55 -0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Create copy of packate given to BPF To: xdp-newbies@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: xdp-newbies@vger.kernel.org Hi, I'd like to create a copy of a packet inside a BPF program, alter some of its headers and redirect it and the original packet to different interfaces, either on XDP or TC layers. By taking a look at the helpers list, I have the impression this is not currently supported, but as things evolve rapidly in the BPF area, I want to make sure I'm not overlooking anything. So, is there a way to do this today? Thanks, Matheus Castanho