{"id":2231878,"url":"http://patchwork.ozlabs.org/api/1.2/covers/2231878/?format=json","web_url":"http://patchwork.ozlabs.org/project/openvswitch/cover/20260501133924.3100680-1-houminxi@gmail.com/","project":{"id":47,"url":"http://patchwork.ozlabs.org/api/1.2/projects/47/?format=json","name":"Open vSwitch","link_name":"openvswitch","list_id":"ovs-dev.openvswitch.org","list_email":"ovs-dev@openvswitch.org","web_url":"http://openvswitch.org/","scm_url":"git@github.com:openvswitch/ovs.git","webscm_url":"https://github.com/openvswitch/ovs","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260501133924.3100680-1-houminxi@gmail.com>","list_archive_url":null,"date":"2026-05-01T13:39:21","name":"[ovs-dev,net-next,v2,0/2] selftests: openvswitch: add pop_vlan test","submitter":{"id":93141,"url":"http://patchwork.ozlabs.org/api/1.2/people/93141/?format=json","name":"Minxi Hou","email":"houminxi@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/openvswitch/cover/20260501133924.3100680-1-houminxi@gmail.com/mbox/","series":[{"id":502459,"url":"http://patchwork.ozlabs.org/api/1.2/series/502459/?format=json","web_url":"http://patchwork.ozlabs.org/project/openvswitch/list/?series=502459","date":"2026-05-01T13:39:21","name":"selftests: openvswitch: add pop_vlan test","version":2,"mbox":"http://patchwork.ozlabs.org/series/502459/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2231878/comments/","headers":{"Return-Path":"<ovs-dev-bounces@openvswitch.org>","X-Original-To":["incoming@patchwork.ozlabs.org","dev@openvswitch.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ovs-dev@lists.linuxfoundation.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=cD7BXpUv;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org)","smtp2.osuosl.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key)\n header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104\n header.b=cD7BXpUv","smtp2.osuosl.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com"],"Received":["from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g6XG92m5vz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 23:39:43 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp2.osuosl.org (Postfix) with ESMTP id 1FCAD40721;\n\tFri,  1 May 2026 13:39:41 +0000 (UTC)","from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id kl0RRawB2pPw; Fri,  1 May 2026 13:39:40 +0000 (UTC)","from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp2.osuosl.org (Postfix) with ESMTPS id 40F8D401D8;\n\tFri,  1 May 2026 13:39:40 +0000 (UTC)","from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id E543DC04E8;\n\tFri,  1 May 2026 13:39:39 +0000 (UTC)","from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n by lists.linuxfoundation.org (Postfix) with ESMTP id CEF05C04E7\n for <dev@openvswitch.org>; Fri,  1 May 2026 13:39:38 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp2.osuosl.org (Postfix) with ESMTP id AEC8C4044D\n for <dev@openvswitch.org>; Fri,  1 May 2026 13:39:38 +0000 (UTC)","from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id M5xk8pLqfHtm for <dev@openvswitch.org>;\n Fri,  1 May 2026 13:39:38 +0000 (UTC)","from mail-pg1-x535.google.com (mail-pg1-x535.google.com\n [IPv6:2607:f8b0:4864:20::535])\n by smtp2.osuosl.org (Postfix) with ESMTPS id E68FB401D8\n for <dev@openvswitch.org>; Fri,  1 May 2026 13:39:37 +0000 (UTC)","by mail-pg1-x535.google.com with SMTP id\n 41be03b00d2f7-c648bc907ebso1233189a12.3\n for <dev@openvswitch.org>; Fri, 01 May 2026 06:39:37 -0700 (PDT)","from houminxi ([38.207.130.223]) by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-835158aa1ffsm2548386b3a.22.2026.05.01.06.39.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 01 May 2026 06:39:36 -0700 (PDT)"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections -\n client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp2.osuosl.org 40F8D401D8","OpenDKIM Filter v2.11.0 smtp2.osuosl.org E68FB401D8"],"Received-SPF":"Pass (mailfrom) identity=mailfrom;\n client-ip=2607:f8b0:4864:20::535; helo=mail-pg1-x535.google.com;\n envelope-from=houminxi@gmail.com; receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp2.osuosl.org E68FB401D8","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777642777; x=1778247577; darn=openvswitch.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=9cssEscy0p2FNGQBzJbELyna0OySg7slhF/olyd4D58=;\n b=cD7BXpUvpxBa+IiTQMFxzIvhssIhFKy70ATcrWDM0nai0r73L7Q5fnhMD3uRGOBRdB\n CgIvPjvGbhzzep7SBna6nGo9OO850Q1LURg/05vrDb8jrYmLD4RTIcq7shZjX3JU4Ig1\n TjesSSjdeofWwwjcBpn+/ZLAIGHxBwf+JocLxH6rlrg3fEyhxvjMV7RH2QatGP1VtIRQ\n 13d8brMa917LxbiTrVoqUhnhjB0KDHQpUd2gJ9Ji1e3cFKX0PLIrOW/p6miLB+COOfjD\n 6HtEsav/ejxNmta426cZt6eVSPee9p9f5GJ8mxRZArWCFZRnnDdUL/+jyjKaF0u/KiJy\n MEDA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777642777; x=1778247577;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=9cssEscy0p2FNGQBzJbELyna0OySg7slhF/olyd4D58=;\n b=AAzWndP+SGj21o15Otq4bhexhI88MKH4NlMSSzOnXKVyWrjXiyW5J7mGFw3IQWXSZF\n vBjPeqXLFRurp5D3R3SeuZqLlC564mo+SyEmrp2nKJkIOCPY6C5xkgiF09XEkN+46/jh\n 4vC9tMibI09x326XknPnKLx6w6CTXZNopb5yTGThVM3IxqZ87HTPk3zH/Na1OyOI9yL7\n SBEpyeGoCZ9EsisX8GBtunZCzTJHX0Dt9mJyMPVCDRU6PBzy9YlGDYtVCsaXOJ3A9Mi/\n JpcIj58py8TDWx1POfGLsihI2jkp2vbUjeVZjt9IW+pV4D8pHnaQHKFWFwFRYenLsmuf\n Gxdw==","X-Forwarded-Encrypted":"i=1;\n AFNElJ8qmRcihNAOVUNAJ2d/oy8QOltAxJ3GZl0y1K2EL0Xb5MWtaciKss+Mhnf8VSobIixpv3o=@openvswitch.org","X-Gm-Message-State":"AOJu0YzQwlPs7/fcaZnze7XXMuG75/TXf/I1b2kPFktkACwNOuyQ2/wV\n ufUIjMBkIVQeQpMWkghJxE3UjZNMb3XkcnZ+wlZ7I/aQSRmGGwkgtr3+","X-Gm-Gg":"AeBDievnLT9HnXyOQfR2fSSQSYGKqOb3PGurH7XVccOdiiV9u5Z6NwOxucETD+Kz0iO\n ElyEumDFlAoiGIZ8E/+JWFe5X9xSRqRENkL7f1rIaLvKaY8ef8k3yJsA1tphUu6jnSln/cQcQjm\n +62aZmghNNv1wvm3XDF6OPNJ0Uzp7rHlDBaqTahDcoENxOrjt7FvBrkkuanJc9Ed1Nf8LXZMtb2\n binGO4mbwehYmeh44V52FBXUM4NQ6EusO9UuOB8kPLaWMkyNhNmeimHlcqh15M08+nz1dVTnBx6\n E9ZzdfJVmnf41xFFW4bkqCQvr1GxFZg6MmRUp9ZfZjjDXtUKPVyDeYIthSbzEqn6b8ARvP0BapC\n YTNTuRwWU/Bkmt9mpdQ3Hw7hxn5f3Qwi9XNeXd0a96nn+WHkMh9QFQQzsxvQ1HmAaEhTu2DbOPk\n MVqDdT0a4vzoeJMUeKXCMcBG5aXyg=","X-Received":"by 2002:a05:6a00:23c3:b0:834:df57:9d31 with SMTP id\n d2e1a72fcca58-8351a4028e2mr3213177b3a.28.1777642776842;\n Fri, 01 May 2026 06:39:36 -0700 (PDT)","From":"Minxi Hou <houminxi@gmail.com>","To":"netdev@vger.kernel.org","Cc":"linux-kselftest@vger.kernel.org, dev@openvswitch.org,\n Minxi Hou <houminxi@gmail.com>","Date":"Fri,  1 May 2026 21:39:21 +0800","Message-ID":"<20260501133924.3100680-1-houminxi@gmail.com>","X-Mailer":"git-send-email 2.53.0","MIME-Version":"1.0","Subject":"[ovs-dev] [PATCH net-next v2 0/2] selftests: openvswitch: add\n pop_vlan test","X-BeenThere":"ovs-dev@openvswitch.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"<ovs-dev.openvswitch.org>","List-Unsubscribe":"<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <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>,\n <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>"},"content":"This series extends the ovs-dpctl.py flow parser to support vlan() and\nencap() match strings, then adds a test for the OVS datapath POP_VLAN\naction.\n\nThe ovs-dpctl.py flow parser currently cannot express VLAN-tagged flow\nmatches.  The kernel unconditionally forces an exact match on VLAN TCI\nwhen parsing flow keys, and requires both OVS_KEY_ATTR_VLAN and\nOVS_KEY_ATTR_ENCAP for VLAN frame validation.  Without vlan()/encap()\nparsing, no VLAN flow match is possible from ovs-dpctl.py.\n\nPatch 1 fixes two pre-existing nla_map type bugs: OVS_KEY_ATTR_VLAN\nwas mapped to \"uint16\" instead of the correct big-endian \"be16\", and\nOVS_KEY_ATTR_ENCAP was mapped to \"none\" instead of \"nested\".  It then\nadds the vlan() and encap() flow string parsers, dpstr() display\nsupport, and proper ovskey instance returns for encap.\n\nPatch 2 adds a test that uses kernel VLAN sub-interfaces to generate\n802.1Q tagged frames and verifies pop_vlan via pcap at the egress\nveth.  A negative check confirms tagged frames arrive intact without\npop_vlan, then the positive check confirms the tag is stripped.\n\nNo regression in the existing OVS selftests.\n\nSigned-off-by: Minxi Hou <houminxi@gmail.com>\n---\nv1 -> v2: rebase to latest net-next/main, drop --base=auto\n\nv1: https://lore.kernel.org/netdev/20260501122756.3081754-1-houminxi@gmail.com/\n\nMinxi Hou (2):\n  selftests: openvswitch: add vlan() and encap() flow string parsing\n  selftests: openvswitch: add pop_vlan test\n\n .../selftests/net/openvswitch/openvswitch.sh  | 132 ++++++++++++\n .../selftests/net/openvswitch/ovs-dpctl.py    | 190 +++++++++++++++++-\n 2 files changed, 320 insertions(+), 2 deletions(-)"}