From patchwork Fri Jun 11 14:31:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1490985 Return-Path: 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.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Ic/TgNmE; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1jwm48t0z9sVb for ; Sat, 12 Jun 2021 00:32:24 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9E15581C46; Fri, 11 Jun 2021 14:32:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ldG9_--oBUwG; Fri, 11 Jun 2021 14:32:21 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id D6BDC83E6F; Fri, 11 Jun 2021 14:32:19 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1846BC002B; Fri, 11 Jun 2021 14:32:18 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id AB74EC000B for ; Fri, 11 Jun 2021 14:32:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 71D5C60ABC for ; Fri, 11 Jun 2021 14:32:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uM1T1ZCn12_W for ; Fri, 11 Jun 2021 14:32:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id BC374606B8 for ; Fri, 11 Jun 2021 14:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623421932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S7L5Uh/wtxjHef3fphNvBEf6wPyTV3qJL5ybyquuG8Y=; b=Ic/TgNmED6Z3W8she3YCqfr4b1S4hLzcGaHPKcOlEMJCF+9m5ENg/jMAtwWT7Jc5SuEDGg L6Nz+ROhuULxqCHfYiahpjvfUufXPF/XkAjvzQJ7sRs7ppCldElFp/S4bLzUPBpMgYBJ2O YCF++iardWs2GKy/kiT0PeP6ABp55hA= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-114-R7yee2LBMly-NMxTb_CTJw-1; Fri, 11 Jun 2021 10:32:01 -0400 X-MC-Unique: R7yee2LBMly-NMxTb_CTJw-1 Received: by mail-ej1-f72.google.com with SMTP id p18-20020a1709067852b02903dab2a3e1easo1215600ejm.17 for ; Fri, 11 Jun 2021 07:32:00 -0700 (PDT) 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=S7L5Uh/wtxjHef3fphNvBEf6wPyTV3qJL5ybyquuG8Y=; b=ZnOCkOKI/CaR9kLtyQ2CnDqqQfH9PZGRQA0xyVTTRG9W0g8IcxexuBQg41aCk5OSV1 IdxBumyHhjKTl4yidL5oMF+atKFUkG9M+1tCgd+4/tlhE7ipQo5Mk+oYs2P5gyrT5W1C /U7Jk05TbUgy8KgIUIDcZ+qA1UwW6IszrUYjP6p8286pz/HJZFAzH+iUTYI/o1Bp/eqP 3zsURtk2rAI1E8pybPvGEoMMrKe1t4WAjZ2kZKAsDERA3dNM0IIGl0O87zNvCNym4nCM AuIQSozhN1RRa3bYOuczxnrQ0mS/2I/0fK0o4V5SiUctXhfVOA+yfBYZxclROqlE1Ed+ usaA== X-Gm-Message-State: AOAM532y+8fQFIevu2FF20sbQiBpUNZr07/SjpoRNTTeRgFmCRLEO1Sq UFlXPGt1+bi1PnSe1iAZm+0Ee3f8rkEy5Ko+Ap7lq2tHzDplrGEDuPtjVlstSLCZRM+JS3hzi7d IdQg/pT58RihaPSKwkQPGR2dihlsd2Hy062iop3MgDZ0KevWeW99ENVmj7D1U9wbCVidzLFrbYz sytZgj X-Received: by 2002:a17:906:530e:: with SMTP id h14mr4026926ejo.165.1623421919576; Fri, 11 Jun 2021 07:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDElBWWIHKrjHpquLumN2vutFaRyu4SW+MqOWCZ70Afh/RS549YqSjjzZHYqJdKaha5TYtFA== X-Received: by 2002:a17:906:530e:: with SMTP id h14mr4026901ejo.165.1623421919275; Fri, 11 Jun 2021 07:31:59 -0700 (PDT) Received: from lore-desk.redhat.com (net-47-53-237-43.cust.vodafonedsl.it. [47.53.237.43]) by smtp.gmail.com with ESMTPSA id d5sm2721586edt.49.2021.06.11.07.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 07:31:58 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Fri, 11 Jun 2021 16:31:52 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lorenzo.bianconi@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH v3 0/3] Introduce check_pkt_larger for ingress traffic X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" In the current codebase, check_pkt_larger is applied just for traffic leaving the ovn cluster. This series introduces the same capability for traffic entering the network from a gateway router or distributed gateway router port in order to send an ICMP error packet if the frame size is greater than the configured MTU. DDLog suport is currently missing and it will be added in a dedicated series. Changes since v2: - squash gw router and distributed gw router tests - fix typos Changes since v1: - drop router pipeline rearrangement - refer to check_pkt_larger instead of check_pkt_len Lorenzo Bianconi (3): northd: introduce build_check_pkt_len_flows_for_lrp routine northd: enable check_pkt_larger for gw router northd: add check_pkt_larger lflows for ingress traffic northd/ovn-northd.c | 240 +++++++++++++++++++++++++++----------------- tests/ovn.at | 182 ++++++++++++++++++++++++++++++++- 2 files changed, 325 insertions(+), 97 deletions(-)