From patchwork Mon Oct 2 18:37:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 219 Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id A342E426A5; Mon, 2 Oct 2023 20:37:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37643402CA; Mon, 2 Oct 2023 20:37:44 +0200 (CEST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id EEB5C40262 for ; Mon, 2 Oct 2023 20:37:42 +0200 (CEST) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1c61bde0b4bso884365ad.3 for ; Mon, 02 Oct 2023 11:37:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1696271861; x=1696876661; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2jCy8glUCzoMcD9v3LF0UTPGCLEggpUBnTJHBvtdR5c=; b=omxhB9593ZO6fM67tAa1vUt+Znk3oCOK7HvaO+SjF02T0OqCJCd4h1elatTQWFI3uN XU6epbyTV422UMQOztWRhOW83UlUDLmhEyOiIDF/85ry4HQfz9A0u4d7Zyw074b9Dh5+ o2zXmiqMeWW7MANlNFSYtzkdXnHGnSZgwYWX+hXdDcSnmMbz7vuiB/xpiuadPCIG14Go 8tAGuVeuS4Im/+YBoCYBtl83y1y9BSlJF+3HfK2Qb47Pqd+mqh67a6gwip92NNjK6XMJ 9vylLwA0VVB9x4QzNxMml8Y/3ilGYeCx8vXqj6BlLKVNe/7RcupbrGo+wM81plfQPp0B sM7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696271861; x=1696876661; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2jCy8glUCzoMcD9v3LF0UTPGCLEggpUBnTJHBvtdR5c=; b=gigWWZKY1d7rFs5O7HebaTBvXDIp/5Tma6xZymG1bBAMxbsk0Zrv0oB8YU3CWFRsZZ 6UWP4LRUYpsrO9PsM5W5520SlNKDinAdEBFESkBcvxx4z075O1JvD3X1WYgel1z08aAj o81RgmhYze0o+a3vzjTaStZmv9Pzm9CiU4+u45JJzNGhzLY58VLoJFmIGHQIM1IAj1um THqwboBWSD7IreFp1YimrCgQhfzvFfb2PKVUa3vZaYoSE5kGjprummSNargFmVNxgb0y YKkLVHntz4JMK7n/3jVR7LNVxtifjs9d2CPGA2CpUFT4URdVG/iVb4CxkWIQo0War13F ZiNQ== X-Gm-Message-State: AOJu0YwJETDFfiLYDew1bkDbhQDHa0tDleanshbRELEHl2sr9HybMYFY q72CuTYuMxHRQZqhL1l1zTnOy29xL1mB4mkr1oQ= X-Google-Smtp-Source: AGHT+IHxCbAxa64afbtLBzbF9lperX+5cqTOBhbsEJfZDldYgLGaBWXk252FKu/PB6D5WANYZAk2ww== X-Received: by 2002:a17:902:b282:b0:1c6:15fc:999 with SMTP id u2-20020a170902b28200b001c615fc0999mr9617144plr.45.1696271861433; Mon, 02 Oct 2023 11:37:41 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id iz7-20020a170902ef8700b001b9f7bc3e77sm12546595plb.189.2023.10.02.11.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 11:37:41 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 0/3] rte_ether_unformat_addr changes Date: Mon, 2 Oct 2023 11:37:27 -0700 Message-Id: <20231002183730.301163-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230929163611.62691-1-stephen@networkplumber.org> References: <20230929163611.62691-1-stephen@networkplumber.org> MIME-Version: 1.0 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 patchset makes rte_ether_unformat_addr allow other formats for MAC address. Need to remove some inputs from existing cmdline_etheraddr test, and add a new test in test suite to cover this. There is some overlap between the two tests but that is fine. Stephen Hemminger (3): test: remove some strings from cmdline_etheraddr tests rte_ether_unformat: accept more inputs test: add tests for rte_ether routines app/test/meson.build | 1 + app/test/test_cmdline_etheraddr.c | 11 +- app/test/test_net_ether.c | 169 ++++++++++++++++++++++++++++++ lib/net/rte_ether.c | 87 +++++++++++---- lib/net/rte_ether.h | 9 +- 5 files changed, 248 insertions(+), 29 deletions(-) create mode 100644 app/test/test_net_ether.c