From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 55313424CF; Tue, 11 Jun 2024 18:19:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C13D540A77; Tue, 11 Jun 2024 18:19:13 +0200 (CEST) Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) by mails.dpdk.org (Postfix) with ESMTP id 750164021F for ; Tue, 11 Jun 2024 18:19:12 +0200 (CEST) Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6f8d0a00a35so3953321a34.2 for ; Tue, 11 Jun 2024 09:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1718122751; x=1718727551; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lRiO4ADu+2/okztI5WnrzQwFxiDWrV1wLdE9HXPocXg=; b=ajzZDf4oBmNvJeNjkdpEYcSasfayL3x+YhdpSygZ9xoscHqE4JRa5O7ZwxvmkQqRqj 8cH5Zdhe+sJ2OE8YxOlm/VC+Iql44QKAT2kqmd81svi43REK4oiSjBd1vwqVe6+K6jwu A0CyXoPbZHunE9+Et2nWJ+ZpSluIykTkKU858= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718122751; x=1718727551; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lRiO4ADu+2/okztI5WnrzQwFxiDWrV1wLdE9HXPocXg=; b=xCzaFZT+Jy5xr5Y2QkdunycTPEeA6G5CaYRLu1Zk7sDJPEUtlWP3galVz4Wo1McLhu 6IkK6il85dsP24s1zuCK53FwogqNVXTRnVVBXSJ9aOwIPF5W5s58KFK3pcx28vXMtl3r GpIJc8j2bx5k5GRQEv9c/CfP6C0JF02EKavq1so5V2E27heWA/eLnNBfrplp/JtmUa3i 5izhDx6NPNfEzf7M0mGlYkPgkZzIE1OjF9vmVxMJS2zlUdBrPOH6gHirDvA/2klMGTHQ 43Sm56Dz9BvoG1trfPC5D7r5qhCzF/vF1IPzsV2Prl2LIovn0Cc9RDo5Wi1qNoPXoDlO pWTQ== X-Gm-Message-State: AOJu0YwFXdkcV8GmBHkQjn0JSpQLstJyi7R0rV62fsd8T10YB2ks6gDz tzgNQM1L6Y7y0QFICFl4QIirXTKv8ShuUl/CKe8AEsQDi5JlRdRhVRSbwlPg8HE= X-Google-Smtp-Source: AGHT+IHvV1zwHd12EbTXxoVnqgMfw4ciEpAMtRXaMHKqDgtdQ63LT04Ni8MjHzJ+QQF2aB9g/18YnQ== X-Received: by 2002:a05:6830:20ca:b0:6fa:edb:7b05 with SMTP id 46e09a7af769-6fa0edb7d1bmr591768a34.14.1718122751516; Tue, 11 Jun 2024 09:19:11 -0700 (PDT) Received: from dean-laptop.iol.unh.edu ([2606:4100:3880:1210:52ef:3eaf:5f1e:6f6a]) by smtp.gmail.com with ESMTPSA id af79cd13be357-795332e61e5sm520213285a.129.2024.06.11.09.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:19:11 -0700 (PDT) From: Dean Marx To: Honnappa.Nagarahalli@arm.com, juraj.linkes@pantheon.tech, probb@iol.unh.edu, paul.szczepanek@arm.com, yoan.picchi@foss.arm.com, jspewock@iol.unh.edu, bruce.richardson@intel.com, luca.vizzarro@arm.com Cc: dev@dpdk.org, Dean Marx Subject: [PATCH v2 0/2] VLAN test suite Date: Tue, 11 Jun 2024 12:15:16 -0400 Message-ID: <20240611161606.23881-2-dmarx@iol.unh.edu> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch contains the initial implemenation of a VLAN test suite that ensures the correct functionality of VLAN filtering, stripping, and header insertion on the poll mode driver. VLAN filtering is a useful feature for separating one Ethernet network into multiple logical networks, which enhances network security as it prevents wireless devices from accessing LAN resources. In order to differentiate these packets based on which VLAN they originate from, VLAN tags are inserted in the packet header, and they are either dropped or forwarded based on a VLAN filter list stored on a given port. If a port does not exhibit this behavior, it can compromise the security of the network. There are four test cases this suite implements: 1. Packet reception when tag is in the filter list and stripping is off 2. Packet reception without tag when tag is in filter list and stripping is on 3. No packet reception when tag is not in the filter list 4. Packet reception with tag when tag insertion is on If these all pass, the poll mode driver is correctly configured to use vlan features with no security concerns. Dean Marx (2): Initial implementation for VLAN test suite conf schema dts/framework/config/conf_yaml_schema.json | 3 +- dts/tests/TestSuite_vlan.py | 172 +++++++++++++++++++++ 2 files changed, 174 insertions(+), 1 deletion(-) create mode 100644 dts/tests/TestSuite_vlan.py -- 2.44.0