From patchwork Tue Mar 28 16:45:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davide Caratti X-Patchwork-Id: 13191358 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 A8768C76196 for ; Tue, 28 Mar 2023 16:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbjC1QqE (ORCPT ); Tue, 28 Mar 2023 12:46:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjC1QqE (ORCPT ); Tue, 28 Mar 2023 12:46:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1290E119 for ; Tue, 28 Mar 2023 09:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680021919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=PYmcVDfdzUYPAEza1/Gh4CBUx8TtOatDYG19bOlvgB4=; b=DbtQDveGNQ2bmED3RuupmjCfOYT+RI9gLYWEyWcT9aIgiZZdKz+wymygTy6S90pxDjNOIo bpEn80u3DpWjvMdBcKZVK7NcnI4TPEuSCTCxTq0byfOBZnTQOImwOzZKjVZFvTT32KWjuo YO/4ECAa3LLiA5UecCvwm4TU/eBOuuM= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-278-k-ySxTv8MeaucYByBnwalg-1; Tue, 28 Mar 2023 12:45:13 -0400 X-MC-Unique: k-ySxTv8MeaucYByBnwalg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 14125280D593; Tue, 28 Mar 2023 16:45:13 +0000 (UTC) Received: from dcaratti.users.ipa.redhat.com (unknown [10.32.181.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id B7398492C13; Tue, 28 Mar 2023 16:45:11 +0000 (UTC) From: Davide Caratti To: Jamal Hadi Salim , Cong Wang , Jiri Pirko , Ilya Maximets Cc: Jakub Kicinski , netdev@vger.kernel.org, Pedro Tammela Subject: [PATCH net-next v3 0/4] net/sched: act_tunnel_key: add support for TUNNEL_DONT_FRAGMENT Date: Tue, 28 Mar 2023 18:45:01 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org - patch 1 extends TC tunnel_key action to add support for TUNNEL_DONT_FRAGMENT - patch 2 extends tdc to skip tests when iproute2 support is missing - patch 3 adds a tdc test case to verify functionality of the control plane - patch 4 adds a net/forwarding test case to verify functionality of the data plane v2->v3: - introduce new "dependsOn" property instead of extending "skip" (suggested by Pedro Tammela) - fix wrong indentation (thanks to Jakub Kicinski) v1->v2: - split patchset to have test cases in separate patches (thanks to Pedro Tammela) - change TCA_TUNNEL_KEY_NO_FRAG attribute, so that it is a flag istead of u8 (thanks to Jakub Kicinski) - add missing TEST_PROGS assignment (thanks to Jakub Kicinski) Davide Caratti (4): net/sched: act_tunnel_key: add support for "don't fragment" selftests: tc-testing: add "depends_on" property to skip tests selftests: tc-testing: add tunnel_key "nofrag" test case selftests: forwarding: add tunnel_key "nofrag" test case include/uapi/linux/tc_act/tc_tunnel_key.h | 1 + net/sched/act_tunnel_key.c | 5 + .../testing/selftests/net/forwarding/Makefile | 1 + .../selftests/net/forwarding/tc_tunnel_key.sh | 161 ++++++++++++++++++ .../creating-testcases/AddingTestCases.txt | 2 + .../tc-tests/actions/tunnel_key.json | 25 +++ tools/testing/selftests/tc-testing/tdc.py | 13 ++ 7 files changed, 208 insertions(+) create mode 100755 tools/testing/selftests/net/forwarding/tc_tunnel_key.sh