Message ID | 20200602135025.20704-1-xiangxia.m.yue@gmail.com |
---|---|
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=GoCdCmdB; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49btkV2cFDz9sSc for <incoming@patchwork.ozlabs.org>; Tue, 2 Jun 2020 23:51:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CFD1E20552; Tue, 2 Jun 2020 13:51:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5zFlza6MCSai; Tue, 2 Jun 2020 13:51:43 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id 3E1652047D; Tue, 2 Jun 2020 13:51:43 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 20A4AC0178; Tue, 2 Jun 2020 13:51:43 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id B2B19C016E for <dev@openvswitch.org>; Tue, 2 Jun 2020 13:51:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9C9E587860 for <dev@openvswitch.org>; Tue, 2 Jun 2020 13:51:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ANc3hqDIonlV for <dev@openvswitch.org>; Tue, 2 Jun 2020 13:51:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id 0D6708778E for <dev@openvswitch.org>; Tue, 2 Jun 2020 13:51:41 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id q24so1480359pjd.1 for <dev@openvswitch.org>; Tue, 02 Jun 2020 06:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4wMg6Ci2cmsX2BIVyWm93ByWXXJ+XU3W7WyHjXF1OJg=; b=GoCdCmdBpHn/ooAXItu81GDafUWZ1wNx5kYh0DPIFsuy5sUMmCj+3zyJ4X/RUW+BIh julnRPCNSUVMv0YUzJrIrVS3VDeDdrWu/1SI5a4d42PM1H4v6khrACGiboFkANuEmZZi Gmca2vcEBYGSL/3gxZLviXElwtlxjlWZ8q602UFVMCNbqz6pHZdhwA5hpYHgDuMZrm9a xznmvj5D831w8B//0NZJ2Me3DOKnJ+/cGddge8S5iZEYxGzFqkP0rpsKn4GtkcF1Gjc9 /nLbudBUcAUpbm7tQS4VhhMyqOBrTgn5swjus+42as3udXkz/OhhBAsGuY3hoczJBIwX 4N/Q== 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:mime-version :content-transfer-encoding; bh=4wMg6Ci2cmsX2BIVyWm93ByWXXJ+XU3W7WyHjXF1OJg=; b=FFyoYuY0SPN1tF8+674RzgB25JH/wXAnfwtL7f29Xud5lSDfiIuQmWWNkzmPyldmrW Epejmb5VFCT+9kSGhTMzmLRBRbwZWdlgjaH6fTFOfOBM1zKM9kFaSCRzqLPOOxg8DXhL ngiLXHaaaIwUYJLHBG7x1j46FIs8JYAO915VbwKQVlAhWRSevdS6qVoHPafmmjW80iVT IoVPTWGzvLcAsgX21keS6H6R7aXpiQEyelgZ4gTw83An9mgD0qKEZm/0jujtM5b6MoT8 cL3ae9IMxyL2+lhOFr8vBAoJsFI6MJzqD3u8yqI8NCPs8O/icY70SKpUBCfEOVNUlVpB MTag== X-Gm-Message-State: AOAM533lwHdPvSFXKRjrIl981g1ecP1dNsjr3f/WUQde2wLeD9iVO/DT jGOV6FCsLibFm6yJzYSiCqLNg39qNo8DOQ== X-Google-Smtp-Source: ABdhPJxPdUByAVKIPRxLJmJgOuo+478dKO2iyKHmsU7moe8LKGUCEL/OC4jzzzOiS9hs5/s2yAPVsg== X-Received: by 2002:a17:90a:aa88:: with SMTP id l8mr5477306pjq.43.1591105900348; Tue, 02 Jun 2020 06:51:40 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id h21sm2514622pjz.6.2020.06.02.06.51.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2020 06:51:39 -0700 (PDT) From: xiangxia.m.yue@gmail.com To: dev@openvswitch.org Date: Tue, 2 Jun 2020 21:50:21 +0800 Message-Id: <20200602135025.20704-1-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Cc: simon.horman@netronome.com, i.maximets@ovn.org Subject: [ovs-dev] [PATCH v2 0/4] netdev-offload-tc: Allow to match the IP and port mask of tunnel X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
netdev-offload-tc: Allow to match the IP and port mask of tunnel
|
expand
|
On Tue, Jun 02, 2020 at 09:50:21PM +0800, xiangxia.m.yue@gmail.com wrote: > From: Tonghao Zhang <xiangxia.m.yue@gmail.com> > > This series patch allows user to match tunnel src/dst > address and port with masked values. User can use that > to match specified IP address or port and then drop packets > (DDOS network attack from a gateway or others) or other actions. Thanks for the revised patchset. I have pushed it to the master branch.
From: Tonghao Zhang <xiangxia.m.yue@gmail.com> This series patch allows user to match tunnel src/dst address and port with masked values. User can use that to match specified IP address or port and then drop packets (DDOS network attack from a gateway or others) or other actions. patch [1]: allow user install TC Flowers with dpctl patch [2]: make the codes more readable. patch [3]: allow user to masked match patch [4]: allow user only match tunnel src address Tonghao Zhang (4): dpif-netlink: Generate ufids for installing TC flowers netdev-offload-tc: Use ipv6_addr_is_set instead of is_all_zeros netdev-offload-tc: Allow to match the IP and port mask of tunnel netdev-offload-tc: Expand tunnel source IPs masked match NEWS | 5 +++ include/openvswitch/match.h | 3 ++ lib/dpif-netlink.c | 45 ++++++++++++++++++++++++++ lib/match.c | 13 ++++++++ lib/netdev-offload-tc.c | 49 ++++++++++++++++++++--------- lib/odp-util.c | 3 +- lib/packets.h | 6 ++++ lib/tc.c | 63 +++++++++++++++++++++++++++++++------ tests/tunnel.at | 22 +++++++++++++ 9 files changed, 184 insertions(+), 25 deletions(-) -- V2: * Split: http://patchwork.ozlabs.org/project/openvswitch/patch/20200518014443.1529-2-xiangxia.m.yue@gmail.com/ to two patches, that easily to review the patch. * Fix checkpatch warning * update NEWS * add more info in commit message -- 2.26.1