DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Aman Singh <aman.deep.singh@intel.com>
Cc: dev@dpdk.org, ferruh.yigit@intel.com
Subject: Re: [dpdk-dev] [PATCH v6 1/2] net: added macro for MAC address print
Date: Tue, 24 Aug 2021 08:05:35 -0700	[thread overview]
Message-ID: <20210824080535.45d15858@hermes.local> (raw)
In-Reply-To: <20210824110326.81411-2-aman.deep.singh@intel.com>

On Tue, 24 Aug 2021 16:33:25 +0530
Aman Singh <aman.deep.singh@intel.com> 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

  reply	other threads:[~2021-08-24 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 11:03 [dpdk-dev] [PATCH v6 0/2] Use macro to print MAC address Aman Singh
2021-08-24 11:03 ` [dpdk-dev] [PATCH v6 1/2] net: added macro for MAC address print Aman Singh
2021-08-24 15:05   ` Stephen Hemminger [this message]
2021-08-24 11:03 ` [dpdk-dev] [PATCH v6 2/2] net: added macro to extract MAC address bytes Aman Singh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210824080535.45d15858@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=aman.deep.singh@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).