DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Interface name after bound to IGB
@ 2015-03-25 14:30 Shankari Vaidyalingam
  2015-03-25 15:03 ` Bruce Richardson
  0 siblings, 1 reply; 7+ messages in thread
From: Shankari Vaidyalingam @ 2015-03-25 14:30 UTC (permalink / raw)
  To: dev

Hi

By what name is the NIC port identified after it is bound to the igb_uio
driver (i.e after it becomes a DPDK interface)
I'm asking this question because the interface does not get displayed in
the output of the "ifconfig" after it gets bound to igb_uio driver.


Regards
Shankari.V

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] Interface name after bound to IGB
  2015-03-25 14:30 [dpdk-dev] Interface name after bound to IGB Shankari Vaidyalingam
@ 2015-03-25 15:03 ` Bruce Richardson
  2015-03-25 15:14   ` Shankari Vaidyalingam
  0 siblings, 1 reply; 7+ messages in thread
From: Bruce Richardson @ 2015-03-25 15:03 UTC (permalink / raw)
  To: Shankari Vaidyalingam; +Cc: dev

On Wed, Mar 25, 2015 at 08:00:02PM +0530, Shankari Vaidyalingam wrote:
> Hi
> 
> By what name is the NIC port identified after it is bound to the igb_uio
> driver (i.e after it becomes a DPDK interface)
> I'm asking this question because the interface does not get displayed in
> the output of the "ifconfig" after it gets bound to igb_uio driver.
> 
> 
> Regards
> Shankari.V

Identified where, or to what? It still maintains the same PCI bus-device-function
which can be used to identify it, if that is what you mean.

/Bruce

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] Interface name after bound to IGB
  2015-03-25 15:03 ` Bruce Richardson
@ 2015-03-25 15:14   ` Shankari Vaidyalingam
  2015-03-25 15:17     ` Bruce Richardson
  2015-03-25 15:20     ` Olivier MATZ
  0 siblings, 2 replies; 7+ messages in thread
From: Shankari Vaidyalingam @ 2015-03-25 15:14 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev

Hi Bruce,


If I want to capture the packets received by the interface bound to IGB
(DPDK interface) then I'd like to know what would be the interface name
that must be given.

Regards
Shankari.V


On Wed, Mar 25, 2015 at 8:33 PM, Bruce Richardson <
bruce.richardson@intel.com> wrote:

> On Wed, Mar 25, 2015 at 08:00:02PM +0530, Shankari Vaidyalingam wrote:
> > Hi
> >
> > By what name is the NIC port identified after it is bound to the igb_uio
> > driver (i.e after it becomes a DPDK interface)
> > I'm asking this question because the interface does not get displayed in
> > the output of the "ifconfig" after it gets bound to igb_uio driver.
> >
> >
> > Regards
> > Shankari.V
>
> Identified where, or to what? It still maintains the same PCI
> bus-device-function
> which can be used to identify it, if that is what you mean.
>
> /Bruce
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] Interface name after bound to IGB
  2015-03-25 15:14   ` Shankari Vaidyalingam
@ 2015-03-25 15:17     ` Bruce Richardson
  2015-03-25 15:20     ` Olivier MATZ
  1 sibling, 0 replies; 7+ messages in thread
From: Bruce Richardson @ 2015-03-25 15:17 UTC (permalink / raw)
  To: Shankari Vaidyalingam; +Cc: dev

On Wed, Mar 25, 2015 at 08:44:51PM +0530, Shankari Vaidyalingam wrote:
> Hi Bruce,
> 
> 
> If I want to capture the packets received by the interface bound to IGB
> (DPDK interface) then I'd like to know what would be the interface name
> that must be given.
> 
> Regards
> Shankari.V
> 

To capture using DPDK, the port will be picked up automatically by DPDK init
sequence, or you can explicitly whitelist it via BDF, if you really want. To
capture using something that uses the kernel driver, e.g. using libpcap, you
need to unbind from igb_uio and bind back to the kernel driver again.

Regards,
/Bruce

> 
> On Wed, Mar 25, 2015 at 8:33 PM, Bruce Richardson <
> bruce.richardson@intel.com> wrote:
> 
> > On Wed, Mar 25, 2015 at 08:00:02PM +0530, Shankari Vaidyalingam wrote:
> > > Hi
> > >
> > > By what name is the NIC port identified after it is bound to the igb_uio
> > > driver (i.e after it becomes a DPDK interface)
> > > I'm asking this question because the interface does not get displayed in
> > > the output of the "ifconfig" after it gets bound to igb_uio driver.
> > >
> > >
> > > Regards
> > > Shankari.V
> >
> > Identified where, or to what? It still maintains the same PCI
> > bus-device-function
> > which can be used to identify it, if that is what you mean.
> >
> > /Bruce
> >

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] Interface name after bound to IGB
  2015-03-25 15:14   ` Shankari Vaidyalingam
  2015-03-25 15:17     ` Bruce Richardson
@ 2015-03-25 15:20     ` Olivier MATZ
  2015-03-26  3:58       ` Shankari Vaidyalingam
  1 sibling, 1 reply; 7+ messages in thread
From: Olivier MATZ @ 2015-03-25 15:20 UTC (permalink / raw)
  To: Shankari Vaidyalingam, Bruce Richardson; +Cc: dev

Hi Shankari,

On 03/25/2015 04:14 PM, Shankari Vaidyalingam wrote:
> Hi Bruce,
>
>
> If I want to capture the packets received by the interface bound to IGB
> (DPDK interface) then I'd like to know what would be the interface name
> that must be given.

If you want to capture the packets, you have to write your program
(maybe based on an example) that displays the packet or save them
into a pcap format. For that, you don't need the interface name but
the portid, which is displayed with the PCI id when you start the dpdk.

Regards,
Olivier

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] Interface name after bound to IGB
  2015-03-25 15:20     ` Olivier MATZ
@ 2015-03-26  3:58       ` Shankari Vaidyalingam
  2015-03-26 11:07         ` Olivier MATZ
  0 siblings, 1 reply; 7+ messages in thread
From: Shankari Vaidyalingam @ 2015-03-26  3:58 UTC (permalink / raw)
  To: Olivier MATZ; +Cc: dev

Hi Olivier,

Thanks for the response.
I executed the L2fwd application by injecting packets from an external
source to the DPDK bound interface.
I was not able to see the stats getting incremented. I'm doing this testing
on a VM inside Oracle VirtualBox.
I've added 2 Bridged Adapters with the adapter type set to "Intel 82545 EM".
I have configured the huge page mappings, bound interface to IGB driver.
Still I'm facing this issue.
Can you pls let me know how to solve this.
It is for this reason I asked the packet capture.

Regards
Shankari.V

On Wed, Mar 25, 2015 at 8:50 PM, Olivier MATZ <olivier.matz@6wind.com>
wrote:

> Hi Shankari,
>
> On 03/25/2015 04:14 PM, Shankari Vaidyalingam wrote:
>
>> Hi Bruce,
>>
>>
>> If I want to capture the packets received by the interface bound to IGB
>> (DPDK interface) then I'd like to know what would be the interface name
>> that must be given.
>>
>
> If you want to capture the packets, you have to write your program
> (maybe based on an example) that displays the packet or save them
> into a pcap format. For that, you don't need the interface name but
> the portid, which is displayed with the PCI id when you start the dpdk.
>
> Regards,
> Olivier
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] Interface name after bound to IGB
  2015-03-26  3:58       ` Shankari Vaidyalingam
@ 2015-03-26 11:07         ` Olivier MATZ
  0 siblings, 0 replies; 7+ messages in thread
From: Olivier MATZ @ 2015-03-26 11:07 UTC (permalink / raw)
  To: Shankari Vaidyalingam; +Cc: dev

Hi,

On 03/26/2015 04:58 AM, Shankari Vaidyalingam wrote:
> Hi Olivier,
>
> Thanks for the response.
> I executed the L2fwd application by injecting packets from an external
> source to the DPDK bound interface.
> I was not able to see the stats getting incremented. I'm doing this
> testing on a VM inside Oracle VirtualBox.
> I've added 2 Bridged Adapters with the adapter type set to "Intel 82545 EM".
> I have configured the huge page mappings, bound interface to IGB driver.
> Still I'm facing this issue.
> Can you pls let me know how to solve this.
> It is for this reason I asked the packet capture.

I have no experience with VirtualBox, so I don't know if its emulated
devices are properly supported.

Regards,
Olivier

PS: please do not top-post

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-26 11:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25 14:30 [dpdk-dev] Interface name after bound to IGB Shankari Vaidyalingam
2015-03-25 15:03 ` Bruce Richardson
2015-03-25 15:14   ` Shankari Vaidyalingam
2015-03-25 15:17     ` Bruce Richardson
2015-03-25 15:20     ` Olivier MATZ
2015-03-26  3:58       ` Shankari Vaidyalingam
2015-03-26 11:07         ` Olivier MATZ

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git