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 06C3FA0C41; Wed, 25 Aug 2021 19:34:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C788C4013F; Wed, 25 Aug 2021 19:34:38 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id C0BEB40041 for ; Wed, 25 Aug 2021 19:34:36 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10087"; a="303154098" X-IronPort-AV: E=Sophos;i="5.84,351,1620716400"; d="scan'208";a="303154098" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2021 10:34:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,351,1620716400"; d="scan'208";a="464849476" Received: from npg-npf-wlpr-srv02.iind.intel.com ([10.190.213.104]) by orsmga007.jf.intel.com with ESMTP; 25 Aug 2021 10:34:33 -0700 From: Aman Singh To: dev@dpdk.org Cc: ferruh.yigit@intel.com, stephen@networkplumber.org Date: Wed, 25 Aug 2021 22:57:32 +0530 Message-Id: <20210825172734.39846-1-aman.deep.singh@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v7 0/2] Use macro to print MAC address 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 Sender: "dev" Added macros to simplyfy print of MAC address. The six bytes of mac address is extracted using a macro to improve code readability. V2: Fix build issue in examples code V3: Fix Windows compilation issue V5: Print format aligned with rte_ether_format_addr API Both using upper case hexadecimal format. V6: Added macro RTE_ETHER_ADDR_BYTES in the rte_ether_format_addr API and rebased. V7: File got renamed after rebase nfp_ethdev.c added changes to it. *** BLURB HERE *** Aman Singh (2): net: added macro for MAC address print net: added macro to extract MAC address bytes app/pdump/main.c | 5 +--- app/test-pmd/cmdline.c | 6 ++-- app/test-pmd/config.c | 6 ++-- app/test-pmd/testpmd.c | 9 ++---- app/test/test_event_eth_rx_adapter.c | 5 +--- app/test/test_event_eth_tx_adapter.c | 5 +--- drivers/bus/dpaa/base/fman/netcfg_layer.c | 9 ++---- drivers/common/mlx5/linux/mlx5_nl.c | 6 ++-- drivers/net/bnx2x/bnx2x.c | 4 +-- drivers/net/bnx2x/bnx2x_vfpf.c | 10 ++----- drivers/net/bnx2x/ecore_sp.c | 14 ++++----- drivers/net/bnxt/bnxt_ethdev.c | 2 +- drivers/net/bonding/rte_eth_bond_8023ad.c | 4 +-- drivers/net/bonding/rte_eth_bond_pmd.c | 12 +++----- drivers/net/dpaa/dpaa_ethdev.c | 10 ++----- drivers/net/e1000/igb_ethdev.c | 9 ++---- drivers/net/enic/base/vnic_dev.c | 4 +-- drivers/net/enic/enic_res.c | 2 +- drivers/net/failsafe/failsafe.c | 6 ++-- drivers/net/hinic/hinic_pmd_ethdev.c | 6 ++-- drivers/net/i40e/i40e_ethdev_vf.c | 21 ++++---------- drivers/net/iavf/iavf_ethdev.c | 18 +++--------- drivers/net/iavf/iavf_vchnl.c | 15 +++------- drivers/net/ice/ice_dcf.c | 6 ++-- drivers/net/ixgbe/ixgbe_ethdev.c | 29 ++++--------------- drivers/net/mlx4/mlx4.c | 7 ++--- drivers/net/mlx5/linux/mlx5_os.c | 7 ++--- drivers/net/mlx5/windows/mlx5_os.c | 7 ++--- drivers/net/mvpp2/mrvl_flow.c | 4 +-- drivers/net/netvsc/hn_rndis.c | 2 +- drivers/net/nfp/nfp_ethdev.c | 2 +- drivers/net/qede/base/ecore_mcp.c | 2 +- drivers/net/qede/base/ecore_sriov.c | 2 +- drivers/net/qede/qede_ethdev.c | 9 ++---- drivers/net/thunderx/nicvf_ethdev.c | 2 +- drivers/net/txgbe/txgbe_ethdev_vf.c | 29 ++++--------------- drivers/net/virtio/virtio_ethdev.c | 4 +-- drivers/net/vmxnet3/vmxnet3_ethdev.c | 4 +-- examples/bbdev_app/main.c | 9 ++---- examples/bond/main.c | 3 +- examples/distributor/main.c | 5 +--- examples/ethtool/ethtool-app/ethapp.c | 10 ++----- .../pipeline_worker_generic.c | 5 +--- .../eventdev_pipeline/pipeline_worker_tx.c | 5 +--- examples/flow_classify/flow_classify.c | 5 +--- examples/ioat/ioatfwd.c | 9 ++---- examples/ip_pipeline/cli.c | 11 ++----- examples/l2fwd-cat/l2fwd-cat.c | 5 +--- examples/l2fwd-crypto/main.c | 11 ++----- examples/l2fwd-event/l2fwd_common.c | 9 ++---- examples/l2fwd-jobstats/main.c | 11 ++----- examples/l2fwd-keepalive/main.c | 9 ++---- examples/l2fwd/main.c | 11 ++----- examples/link_status_interrupt/main.c | 9 ++---- examples/packet_ordering/main.c | 5 +--- examples/pipeline/cli.c | 6 ++-- examples/rxtx_callbacks/main.c | 4 +-- examples/server_node_efd/server/main.c | 6 ++-- examples/skeleton/basicfwd.c | 5 +--- examples/vhost/main.c | 17 +++-------- examples/vm_power_manager/channel_monitor.c | 4 +-- .../guest_cli/vm_power_cli_guest.c | 5 +--- examples/vm_power_manager/main.c | 5 +--- examples/vmdq/main.c | 14 ++------- examples/vmdq_dcb/main.c | 14 ++------- lib/net/rte_ether.c | 9 ++---- lib/net/rte_ether.h | 14 +++++++++ lib/vhost/vhost_user.c | 2 +- 68 files changed, 157 insertions(+), 384 deletions(-) -- 2.17.1