From patchwork Thu May 16 18:04:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 53490 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D1E5DD167; Thu, 16 May 2019 20:04:37 +0200 (CEST) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by dpdk.org (Postfix) with ESMTP id BEA465F1B for ; Thu, 16 May 2019 20:04:36 +0200 (CEST) Received: by mail-pl1-f194.google.com with SMTP id x15so1997210pln.9 for ; Thu, 16 May 2019 11:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IxL/Oe9veg74F3sI8SbvmuDMxe1uMqt2M9/dvQnD65I=; b=YIh2DcsLxWlM97mE1rHyyq2lxKwKtroOLnY4fthe+tOezbV4xCBufQfztsZbSph0qo oEoIMaWIn2fKQNURJKLdkjqnNjvxqjRw9omNoD/y1jPphIGFOKnoyVlFQMfGlwLeqmbG UfIjF8iIsZ1NMX3HiRpCI4hsca16sr6F0G3dcMVedYAegN4IUANZ7+Hq+cemi/ia3si6 sm/yA3InZITfbnmTD8UYfSYvlBge6pV3HTnY1Wbzmas2E99HkGAjaWQjIXIwe/msofyA kjktWc2DJPk4yenlqPnlP8FVlFa3i2TU9tkf0jJ1TQ57Ae0qfVbSXo+HTe5SMr3ojGco fQqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IxL/Oe9veg74F3sI8SbvmuDMxe1uMqt2M9/dvQnD65I=; b=UDAaPOGjhHAFz1dNH+VjA47/v8ZhszJvFK2MZu8npRPQFwyZsgpaw3TwgDsjkJyjjW Qz8w4xyk9HJZ2rf0U7h9FPxlrMcbRW5CrLPH4EigaCL1HtBwDzBxd2PxOyFfzsN1jFwm bFYHM5Bb559Zo/zSnXO8maWN+vkSDVXnIq3YXyXzDm31iaWPbFKxpBtWj7sN9pKXDUaw ZFHHwWSx7ZYnEBzjTq0dmOxtofOOQcU6kSUcOdN/nlLdpEph0ODsTeijwfh1GMCqrPWX oZKmrYT0ZXmMTpC6JdVEZin4f6JpETl0L13E40kc1UJ7U9zV5LgiLEDwJhb5qZvPFa4e bbnA== X-Gm-Message-State: APjAAAVEd8SyuhMkI9rHAuxcBXlovTpu3sXZxWK2RWlobmH5JZLYA5ty WYCgilBCwvAT47tOta61Pw0YpqwKJGc= X-Google-Smtp-Source: APXvYqxZhbX1hRJeDPYn5AQKQI4J5rGw5u4sfMGFbOg9314DB3QleG71khwkyKdYe5Kh68h0uLaedw== X-Received: by 2002:a17:902:9007:: with SMTP id a7mr50811443plp.221.1558029875513; Thu, 16 May 2019 11:04:35 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id d67sm9376657pfa.35.2019.05.16.11.04.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 11:04:34 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 16 May 2019 11:04:20 -0700 Message-Id: <20190516180427.17270-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 0/7] ether: improvements and optimizations X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This is a collection of patches around the ethernet address manipulation routines in librte_net/rte_ether. This does not include the prefixing of the ether_address which is still under review. v2 incorporates feedback and Bruce's alignement patch Bruce Richardson (1): ether: mark ethernet addresses as being 2-byte aligned Stephen Hemminger (6): ether: do not mark ethernet address and header as packed ether: deinline non-critical functions ether: add eth_unformat_addr ethdev: use eth_unformat_addr ether: use bitops to speedup comparison cmdline: use ether_unformat_addr lib/Makefile | 3 +- lib/librte_cmdline/Makefile | 3 +- lib/librte_cmdline/cmdline_parse_etheraddr.c | 69 ++---------------- lib/librte_cmdline/meson.build | 3 + lib/librte_ethdev/Makefile | 2 +- lib/librte_ethdev/meson.build | 2 +- lib/librte_ethdev/rte_class_eth.c | 9 +-- lib/librte_net/Makefile | 1 + lib/librte_net/rte_ether.c | 76 ++++++++++++++++++++ lib/librte_net/rte_ether.h | 70 +++++++++--------- lib/librte_net/rte_net_version.map | 8 +++ 11 files changed, 134 insertions(+), 112 deletions(-) create mode 100644 lib/librte_net/rte_ether.c