DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: "Charles (Chas) Williams" <ciwillia@brocade.com>, dev@dpdk.org
Cc: linville@tuxdriver.com
Subject: Re: [dpdk-dev] [PATCH 2/3] net/af_packet: add accessor for iface
Date: Mon, 22 May 2017 10:39:04 +0100	[thread overview]
Message-ID: <4fdc5000-66c1-ff96-6330-20a3cc92d900@intel.com> (raw)
In-Reply-To: <1495044215-16915-2-git-send-email-ciwillia@brocade.com>

Hi Chas,

On 5/17/2017 7:03 PM, Charles (Chas) Williams wrote:
> Provide an accessor for the name of the underlying linux interface
> used by the AF_PACKET-based interface.

This patch provides a PMD specific API to get PMD internal data
(internals->if_name).

I think we should avoid PMD specific APIs if possible.

internals->if_name is provided by application, as devargs to af_packet
(iface=..), so app already knows port_id -> if_name mapping.

OR

With rte_eth_dev_info_get() af_packet returns the if_index for
underlying interface, it is possible to use if_indextoname() to get ifname.

Because above methods exists to get if_name, I think this API is not
necessary.

> 
> Signed-off-by: Charles (Chas) Williams <ciwillia@brocade.com>

<...>

  reply	other threads:[~2017-05-22  9:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-17 18:03 [dpdk-dev] [PATCH 1/3] net/af_packet: handle strdup() failures Charles (Chas) Williams
2017-05-17 18:03 ` [dpdk-dev] [PATCH 2/3] net/af_packet: add accessor for iface Charles (Chas) Williams
2017-05-22  9:39   ` Ferruh Yigit [this message]
2017-05-22 13:20     ` Charles (Chas) Williams
2017-05-17 18:03 ` [dpdk-dev] [PATCH 3/3] net/af_packet: fix packet bytes counting Charles (Chas) Williams
2017-05-23  9:50 ` [dpdk-dev] [PATCH 1/3] net/af_packet: handle strdup() failures Ferruh Yigit

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=4fdc5000-66c1-ff96-6330-20a3cc92d900@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=ciwillia@brocade.com \
    --cc=dev@dpdk.org \
    --cc=linville@tuxdriver.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).