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 0413AA0C4D; Tue, 24 Aug 2021 17:05:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF04B406A3; Tue, 24 Aug 2021 17:05:39 +0200 (CEST) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 1B49F40687 for ; Tue, 24 Aug 2021 17:05:39 +0200 (CEST) Received: by mail-pf1-f170.google.com with SMTP id y11so18628794pfl.13 for ; Tue, 24 Aug 2021 08:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=laOxnEUcksJQRwQTYmdqaildubzHdhCw7Oc0UMeKjtA=; b=uV2S5i0snJfy+whWPakK+BPX5mWcdxvKbagXsqGne2j2WFPDEIT0tQb6u3B8NnGy+N 0yO3meiQRJMFtl53GV8CypRq/Mqj9kKN0cHsUwiShOk5blQBfwlvg+PFZgy4/ZLCC2S5 f5EfCDfnxy5ED83BXVWuViNPq2YQLXxwLxdVICYhKuml1kLgW/VpONziX50Sm+I71E9j AwN6CsWNuQkJAdLcmfV+Iz/SxwPSYusRIE8/6LQEZ4QYL7fXPmfXxNWk6p5z57UdmEEj gVeDyW6O2XiQSrQFnxrwVx32dOV9wevA5lOK0dJtgoYY5+ZUG7Jl8UO+dKuInLiRGaEZ 3lLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=laOxnEUcksJQRwQTYmdqaildubzHdhCw7Oc0UMeKjtA=; b=WAxWZ/xlmD7f7NIOliGNabGVYj+xMiGVzKpHw+XdOYKMDg3F4HYqZXItDlrycH88q8 s+wiBQiPi3RFJ5u4qIl6TDSk6dQOQl6wD9dLS7+coUVYUoYqonMiDAMxiSXIh3zPqBUr dMpAtV+YMDYCIjThB+4T2t7jrhZQPeLnG4c4grFxbHjCwXDN/3c2dTyMwQzi4hBFGFPf CUX+Ev+NH4vqH5zzhei0uVUYQ4qh0ADdqwJVYlc0zRN5zQ5yExiMzZJN/pgBFs5aD23U Jr9qcit434up0yXXhfInkDd4cU/r9CgKaIg0a0VnG09bqpSPw64My2Hg7yGhRyJPYN5F oPoQ== X-Gm-Message-State: AOAM532TaiwfNT9bApl8no+C3T3dFn+vMM76gTw5YG8A0Eq1qeH3lGfg +cKqSizNp1kGoDK5JoIzJgHUcA== X-Google-Smtp-Source: ABdhPJy+VRnHAnaq83q6sNcJVN3idXdpPx3o2R9jKUlo9eD2zI3ZhxT+jN5KJ8fqFfMcDKsxe2dyDg== X-Received: by 2002:a62:3812:0:b0:3ec:c9c6:5d1a with SMTP id f18-20020a623812000000b003ecc9c65d1amr4737054pfa.60.1629817538369; Tue, 24 Aug 2021 08:05:38 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id o2sm16314368pgu.76.2021.08.24.08.05.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 08:05:38 -0700 (PDT) Date: Tue, 24 Aug 2021 08:05:35 -0700 From: Stephen Hemminger To: Aman Singh Cc: dev@dpdk.org, ferruh.yigit@intel.com Message-ID: <20210824080535.45d15858@hermes.local> In-Reply-To: <20210824110326.81411-2-aman.deep.singh@intel.com> References: <20210824110326.81411-1-aman.deep.singh@intel.com> <20210824110326.81411-2-aman.deep.singh@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v6 1/2] net: added macro for MAC address print 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" On Tue, 24 Aug 2021 16:33:25 +0530 Aman Singh wrote: > diff --git a/lib/net/rte_ether.h b/lib/net/rte_ether.h > index 7ee5e9a292..8d126d4c81 100644 > --- a/lib/net/rte_ether.h > +++ b/lib/net/rte_ether.h > @@ -221,6 +221,11 @@ rte_ether_addr_copy(const struct rte_ether_addr *__restrict ea_from, > *ea_to = *ea_from; > } > > +/** > + * Macro to print six-bytes of MAC address in hex format > + */ > +#define RTE_ETHER_ADDR_PRT_FMT "%02X:%02X:%02X:%02X:%02X:%02X" > + > #define RTE_ETHER_ADDR_FMT_SIZE 18 > /** > * Format 48bits Ethernet address in pattern xx:xx:xx:xx:xx:xx. Please uses same macro in rte_ether_format_addr