get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/114060/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 114060,
    "url": "https://patches.dpdk.org/api/patches/114060/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20220720100243.31535-2-songx.jiale@intel.com/",
    "project": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20220720100243.31535-2-songx.jiale@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220720100243.31535-2-songx.jiale@intel.com",
    "date": "2022-07-20T10:02:43",
    "name": "[V1,2/2] tests/ice_dcf_switch_filter: add case",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "f771c3da6df4dfc3deaf5df261d80dc56b37debd",
    "submitter": {
        "id": 2352,
        "url": "https://patches.dpdk.org/api/people/2352/?format=api",
        "name": "Jiale, SongX",
        "email": "songx.jiale@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20220720100243.31535-2-songx.jiale@intel.com/mbox/",
    "series": [
        {
            "id": 24033,
            "url": "https://patches.dpdk.org/api/series/24033/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=24033",
            "date": "2022-07-20T10:02:42",
            "name": "[V1,1/2] test_plans/ice_dcf_switch_filter: add case",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/24033/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/114060/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/114060/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5D0E4A00C2;\n\tWed, 20 Jul 2022 03:41:54 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4E5E540A7A;\n\tWed, 20 Jul 2022 03:41:54 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 0ACE440697\n for <dts@dpdk.org>; Wed, 20 Jul 2022 03:41:52 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Jul 2022 18:41:47 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.94])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Jul 2022 18:41:45 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1658281313; x=1689817313;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=e7y5G2F8rwOPUX320VZNaHrJwmEx2uRbBhjJf731phA=;\n b=lIcLjBcy3zN4MHcBti/XOntXWbaB7ijQ2SbHhWpl2cPM1+zzx03i/MlY\n HLc5EEBMx9yoXXSvJfGRVOzs7cOOPX1yvnz1XpgRk7MJa5ZZlmtHIuP6H\n WeePnchd64zKDeNH+jgi/nyfTaRhfuGr0PBnZq/so+UjaqT5xJpLL+sYE\n Y8tH91EKTD9yD6ZuhRCX8Ldy6yiBb9C1/Cep7F3Lo31xcWqouVWXnHo+F\n /2VHHx2TedCeG9hJoIdY/sIhyWQNFoD+u68mjF1ohHt1JOPPpxI3ygNu9\n ecFS2Kt7mVwIMgJsgKyAwp9ZRwzWp+nnTrMtD0/nSJ0fedrK4CBWGYY3x Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10413\"; a=\"285418961\"",
            "E=Sophos;i=\"5.92,285,1650956400\"; d=\"scan'208\";a=\"285418961\"",
            "E=Sophos;i=\"5.92,285,1650956400\"; d=\"scan'208\";a=\"625446778\""
        ],
        "From": "Jiale Song <songx.jiale@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Jiale Song <songx.jiale@intel.com>",
        "Subject": "[dts] [PATCH V1 2/2] tests/ice_dcf_switch_filter: add case",
        "Date": "Wed, 20 Jul 2022 10:02:43 +0000",
        "Message-Id": "<20220720100243.31535-2-songx.jiale@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20220720100243.31535-1-songx.jiale@intel.com>",
        "References": "<20220720100243.31535-1-songx.jiale@intel.com>",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "add case to test l4 multicast.\n\nSigned-off-by: Jiale Song <songx.jiale@intel.com>\n---\n tests/TestSuite_ice_dcf_switch_filter.py | 287 +++++++++++++++++++++++\n 1 file changed, 287 insertions(+)",
    "diff": "diff --git a/tests/TestSuite_ice_dcf_switch_filter.py b/tests/TestSuite_ice_dcf_switch_filter.py\nindex 3c647be6..c3ca48d1 100644\n--- a/tests/TestSuite_ice_dcf_switch_filter.py\n+++ b/tests/TestSuite_ice_dcf_switch_filter.py\n@@ -1388,6 +1388,139 @@ tv_add_two_rules_with_different_input_set_different_vf_id = {\n     },\n }\n \n+# l4 mask\n+# ipv4/ipv6 + udp/tcp\n+mac_ipv4_udp_l4_mask_scapy_str = {\n+    \"matched\": [\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/UDP(sport=2048,dport=1)/Raw(\"x\"*80)',\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/UDP(sport=2303,dport=3841)/Raw(\"x\"*80)',\n+    ],\n+    \"mismatched\": [\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/UDP(sport=2047,dport=2)/Raw(\"x\"*80)',\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/UDP(sport=2058,dport=3586)/Raw(\"x\"*80)',\n+    ],\n+}\n+tv_mac_ipv4_udp_l4_mask_in_single_vf_01 = {\n+    \"name\": \"tv_mac_ipv4_udp_l4_mask_in_single_vf_01\",\n+    \"rte_flow_pattern\": \"flow create 0 priority 0 ingress pattern eth / ipv4 / udp src is 2152 src mask 0xff00 dst is 1281 dst mask 0x00ff / end actions vf id 1 / end\",\n+    \"matched\": {\n+        \"scapy_str\": mac_ipv4_udp_l4_mask_scapy_str[\"matched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 2},\n+    },\n+    \"mismatched\": {\n+        \"scapy_str\": mac_ipv4_udp_l4_mask_scapy_str[\"mismatched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 0},\n+    },\n+}\n+\n+mac_ipv6_udp_l4_mask_scapy_str = {\n+    \"matched\": [\n+        'Ether(dst=\"00:11:22:33:44:66\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/TCP(sport=10,dport=3328)/Raw(\"x\"*80)',\n+        'Ether(dst=\"00:11:22:33:44:66\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/TCP(sport=20,dport=3343)/Raw(\"x\"*80)',\n+    ],\n+    \"mismatched\": [\n+        'Ether(dst=\"00:11:22:33:44:66\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/TCP(sport=50,dport=3077)/Raw(\"x\"*80)',\n+        'Ether(dst=\"00:11:22:33:44:66\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/TCP(sport=50,dport=3349)/Raw(\"x\"*80)',\n+    ],\n+}\n+tv_mac_ipv6_tcp_l4_mask_in_single_vf_02 = {\n+    \"name\": \"tv_mac_ipv6_tcp_l4_mask_in_single_vf_02\",\n+    \"rte_flow_pattern\": \"flow create 0 priority 0 ingress pattern eth / ipv6 / tcp dst is 3333 dst mask 0x0ff0 / end actions vf id 1 / end\",\n+    \"matched\": {\n+        \"scapy_str\": mac_ipv6_udp_l4_mask_scapy_str[\"matched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 2},\n+    },\n+    \"mismatched\": {\n+        \"scapy_str\": mac_ipv6_udp_l4_mask_scapy_str[\"mismatched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 0},\n+    },\n+}\n+\n+# test vxlan l4 mask\n+mac_ipv4_udp_vxlan_eth_ipv4_udp_l4_mask_scapy_str = {\n+    \"matched\": [\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=32,dport=22)/Raw(\"x\"*80)',\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=16,dport=22)/Raw(\"x\"*80)',\n+    ],\n+    \"mismatched\": [\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=33,dport=22)/Raw(\"x\"*80)'\n+    ],\n+}\n+tv_mac_ipv4_udp_vxlan_eth_ipv4_udp_l4_mask_in_single_vf_03 = {\n+    \"name\": \"tv_mac_ipv4_udp_vxlan_eth_ipv4_udp_l4_mask_in_single_vf_03\",\n+    \"rte_flow_pattern\": \"flow create 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 / udp src is 32 src mask 0x0f / end actions vf id 1 / end\",\n+    \"matched\": {\n+        \"scapy_str\": mac_ipv4_udp_vxlan_eth_ipv4_udp_l4_mask_scapy_str[\"matched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 2},\n+    },\n+    \"mismatched\": {\n+        \"scapy_str\": mac_ipv4_udp_vxlan_eth_ipv4_udp_l4_mask_scapy_str[\"mismatched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 0},\n+    },\n+}\n+\n+# test nvgre l4 mask\n+mac_ipv4_nvgre_eth_ipv4_udp_l4_mask_scapy_str = {\n+    \"matched\": [\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=1280)/Raw(\"x\"*80)',\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=1536)/Raw(\"x\"*80)',\n+    ],\n+    \"mismatched\": [\n+        'Ether(dst=\"00:11:22:33:44:66\")/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=1281)/Raw(\"x\"*80)',\n+    ],\n+}\n+tv_mac_ipv4_nvgre_eth_ipv4_udp_l4_mask_in_single_vf_04 = {\n+    \"name\": \"tv_mac_ipv4_nvgre_eth_ipv4_udp_l4_mask_in_single_vf_04\",\n+    \"rte_flow_pattern\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 0x8 / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / udp src is 1280 src mask 0x00ff / end actions vf id 1 / end\",\n+    \"matched\": {\n+        \"scapy_str\": mac_ipv4_nvgre_eth_ipv4_udp_l4_mask_scapy_str[\"matched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 2},\n+    },\n+    \"mismatched\": {\n+        \"scapy_str\": mac_ipv4_nvgre_eth_ipv4_udp_l4_mask_scapy_str[\"mismatched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 0},\n+    },\n+}\n+\n+tvs_l4_multicast = [\n+    tv_mac_ipv4_udp_l4_mask_in_single_vf_01,\n+    tv_mac_ipv6_tcp_l4_mask_in_single_vf_02,\n+    tv_mac_ipv4_udp_vxlan_eth_ipv4_udp_l4_mask_in_single_vf_03,\n+    tv_mac_ipv4_nvgre_eth_ipv4_udp_l4_mask_in_single_vf_04,\n+]\n+\n tv_mac_ipv4_drop = {\n     \"name\": \"tv_mac_ipv4_drop\",\n     \"rte_flow_pattern\": \"flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.1 / end actions drop / end\",\n@@ -1632,6 +1765,141 @@ tv_mac_blend_pkg_drop = {\n     },\n }\n \n+vf1_mac = \"00:11:22:33:44:55\"\n+mac_ipv4_tcp_l4_mask_scapy_str = {\n+    \"matched\": [\n+        'Ether(dst=\"%s\")/IP()/TCP(sport=2313,dport=23)/Raw(\"x\"*80)' % vf1_mac,\n+        'Ether(dst=\"%s\")/IP()/TCP(sport=2553,dport=23)/Raw(\"x\"*80)' % vf1_mac,\n+    ],\n+    \"mismatched\": [\n+        'Ether(dst=\"%s\")/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/TCP(sport=2344,dport=23)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+        'Ether(dst=\"%s\")/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/TCP(sport=2601,dport=23)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+    ],\n+}\n+tv_mac_ipv4_tcp_l4_mask_drop = {\n+    \"name\": \"tv_mac_ipv4_tcp_l4_mask_drop\",\n+    \"rte_flow_pattern\": \"flow create 0 priority 0 ingress pattern eth / ipv4 / tcp src is 2345 src mask 0x0f0f / end actions drop / end\",\n+    \"matched\": {\n+        \"scapy_str\": mac_ipv4_tcp_l4_mask_scapy_str[\"matched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 0},\n+    },\n+    \"mismatched\": {\n+        \"scapy_str\": mac_ipv4_tcp_l4_mask_scapy_str[\"mismatched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 2},\n+    },\n+}\n+\n+mac_ipv6_tcp_l4_mask_scapy_str = {\n+    \"matched\": [\n+        'Ether(dst=\"%s\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/UDP(sport=10,dport=3328)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+        'Ether(dst=\"%s\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/UDP(sport=20,dport=3343)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+    ],\n+    \"mismatched\": [\n+        'Ether(dst=\"%s\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/UDP(sport=50,dport=3077)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+        'Ether(dst=\"%s\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/UDP(sport=50,dport=3349)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+    ],\n+}\n+tv_mac_ipv6_udp_l4_mask_drop = {\n+    \"name\": \"tv_mac_ipv6_udp_l4_mask_drop\",\n+    \"rte_flow_pattern\": \"flow create 0 priority 0 ingress pattern eth / ipv6 / udp dst is 3333 dst mask 0x0ff0 / end actions drop / end\",\n+    \"matched\": {\n+        \"scapy_str\": mac_ipv6_tcp_l4_mask_scapy_str[\"matched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 0},\n+    },\n+    \"mismatched\": {\n+        \"scapy_str\": mac_ipv6_tcp_l4_mask_scapy_str[\"mismatched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 2},\n+    },\n+}\n+\n+mac_ipv4_udp_vxlan_eth_ipv4_tcp_l4_mask_scapy_str = {\n+    \"matched\": [\n+        'Ether(dst=\"%s\")/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=32,dport=22)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+        'Ether(dst=\"%s\")/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=16,dport=22)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+    ],\n+    \"mismatched\": [\n+        'Ether(dst=\"%s\")/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=33,dport=22)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+    ],\n+}\n+tv_mac_ipv4_udp_vxlan_eth_ipv4_tcp_l4_mask_drop = {\n+    \"name\": \"tv_mac_ipv4_udp_vxlan_eth_ipv4_tcp_l4_mask_drop\",\n+    \"rte_flow_pattern\": \"flow create 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 / tcp src is 32 src mask 0x0f / end actions drop / end\",\n+    \"matched\": {\n+        \"scapy_str\": mac_ipv4_udp_vxlan_eth_ipv4_tcp_l4_mask_scapy_str[\"matched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 0},\n+    },\n+    \"mismatched\": {\n+        \"scapy_str\": mac_ipv4_udp_vxlan_eth_ipv4_tcp_l4_mask_scapy_str[\"mismatched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 1},\n+    },\n+}\n+\n+mac_ipv4_nvgre_eth_ipv4_tcp_l4_mask_scapy_str = {\n+    \"matched\": [\n+        'Ether(dst=\"%s\")/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=50,dport=1280)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+        'Ether(dst=\"%s\")/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=50,dport=1536)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+    ],\n+    \"mismatched\": [\n+        'Ether(dst=\"%s\")/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=50,dport=1281)/Raw(\"x\"*80)'\n+        % vf1_mac,\n+    ],\n+}\n+tv_mac_ipv4_nvgre_eth_ipv4_tcp_l4_mask_drop = {\n+    \"name\": \"tv_mac_ipv4_nvgre_eth_ipv4_tcp_l4_mask_drop\",\n+    \"rte_flow_pattern\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 0x8 / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / tcp dst is 1280 dst mask 0x00ff / end actions drop / end\",\n+    \"matched\": {\n+        \"scapy_str\": mac_ipv4_nvgre_eth_ipv4_tcp_l4_mask_scapy_str[\"matched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 0},\n+    },\n+    \"mismatched\": {\n+        \"scapy_str\": mac_ipv4_nvgre_eth_ipv4_tcp_l4_mask_scapy_str[\"mismatched\"],\n+        \"check_func\": {\n+            \"func\": rfc.check_vf_rx_packets_number,\n+            \"param\": {\"expect_port\": 1, \"expect_queues\": \"null\"},\n+        },\n+        \"expect_results\": {\"expect_pkts\": 1},\n+    },\n+}\n+\n sv_mac_test_drop_action = [\n     tv_mac_ipv4_drop,\n     tv_mac_ipv4_mask_drop,\n@@ -1642,6 +1910,10 @@ sv_mac_test_drop_action = [\n     tv_mac_l2tp_drop,\n     tv_mac_esp_drop,\n     tv_mac_blend_pkg_drop,\n+    tv_mac_ipv4_tcp_l4_mask_drop,\n+    tv_mac_ipv6_udp_l4_mask_drop,\n+    tv_mac_ipv4_udp_vxlan_eth_ipv4_tcp_l4_mask_drop,\n+    tv_mac_ipv4_nvgre_eth_ipv4_tcp_l4_mask_drop,\n ]\n \n \n@@ -2640,6 +2912,7 @@ class ICEDCFSwitchFilterTest(TestCase):\n             'ip link set %s vf 1 mac \"00:11:22:33:44:55\"' % self.pf0_intf, \"# \"\n         )\n         self.launch_testpmd()\n+        self.dut.send_expect(\"rx_vxlan_port add 4789 0\", \"testpmd> \")\n         for pattern in sv_mac_test_drop_action:\n             # validate a rule\n             self.validate_switch_filter_rule(pattern[\"rte_flow_pattern\"])\n@@ -2666,6 +2939,20 @@ class ICEDCFSwitchFilterTest(TestCase):\n             self.dut.send_expect(\"flow flush 0\", \"testpmd> \", 15)\n             self.dut.send_expect(\"clear port stats all\", \"testpmd> \", 15)\n \n+    # l4 mask\n+    def test_l4_multicast(self):\n+        self.setup_1pf_vfs_env()\n+        self.dut.send_expect(\n+            \"ip link set %s vf 1 mac 00:11:22:33:44:55\" % self.pf0_intf, \"# \"\n+        )\n+        self.launch_testpmd()\n+        self.dut.send_expect(\"rx_vxlan_port add 4789 0\", \"testpmd> \")\n+        try:\n+            for sub_case in tvs_l4_multicast:\n+                self._rte_flow_validate_pattern(sub_case, launch_testpmd=False)\n+        except Exception as ex:\n+            raise ex\n+\n     def tear_down(self):\n         \"\"\"\n         Run after each test case.\n",
    "prefixes": [
        "V1",
        "2/2"
    ]
}