* [dpdk-users] Link status?
@ 2016-05-25 16:14 Jason Lixfeld
2016-05-25 16:29 ` Gadre Nayan
2016-05-25 16:31 ` Thomas Monjalon
0 siblings, 2 replies; 4+ messages in thread
From: Jason Lixfeld @ 2016-05-25 16:14 UTC (permalink / raw)
To: users
Hi,
I’m messing around with MoonGen and trying to simplify some basic diagnostics before calling whatever MoonGen script I wanted to call. Right now, I’m trying to find a way to report back the status of a link to see if it’s up so that I know whether or not it can be used as a tx or rx interface for whatever MoonGen script I want to run.
Is there an easy way to do that with an existing dpdk application, or does one need to be an super uber programmer type (which I am not anywhere close to being :)) and write some application to be able to do that?
Not sure if it matters, but I’m using an Intel 82599 6 port SFP+. I’m using v2.2.0 (I think? Whatever the version is that is retrieved from git when I build MoonGen), Debian 8.4.
Sorry for sounding dumb. I’m not a programmer in the least :(
Thanks in advance!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-users] Link status?
2016-05-25 16:14 [dpdk-users] Link status? Jason Lixfeld
@ 2016-05-25 16:29 ` Gadre Nayan
2016-05-25 16:31 ` Jason Lixfeld
2016-05-25 16:31 ` Thomas Monjalon
1 sibling, 1 reply; 4+ messages in thread
From: Gadre Nayan @ 2016-05-25 16:29 UTC (permalink / raw)
To: Jason Lixfeld; +Cc: users
There is a patch available for link status change on a kni interface. It
will send netlink message from the kni driver.
On 25 May 2016 9:45 p.m., "Jason Lixfeld" <jason-dpdk@lixfeld.ca> wrote:
> Hi,
>
> I’m messing around with MoonGen and trying to simplify some basic
> diagnostics before calling whatever MoonGen script I wanted to call. Right
> now, I’m trying to find a way to report back the status of a link to see if
> it’s up so that I know whether or not it can be used as a tx or rx
> interface for whatever MoonGen script I want to run.
>
> Is there an easy way to do that with an existing dpdk application, or does
> one need to be an super uber programmer type (which I am not anywhere close
> to being :)) and write some application to be able to do that?
>
> Not sure if it matters, but I’m using an Intel 82599 6 port SFP+. I’m
> using v2.2.0 (I think? Whatever the version is that is retrieved from git
> when I build MoonGen), Debian 8.4.
>
> Sorry for sounding dumb. I’m not a programmer in the least :(
>
> Thanks in advance!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-users] Link status?
2016-05-25 16:29 ` Gadre Nayan
@ 2016-05-25 16:31 ` Jason Lixfeld
0 siblings, 0 replies; 4+ messages in thread
From: Jason Lixfeld @ 2016-05-25 16:31 UTC (permalink / raw)
To: Gadre Nayan; +Cc: users
It sounds like that will only tell me if link status changes, not what the current link status is?
> On May 25, 2016, at 12:29 PM, Gadre Nayan <gadrenayan@gmail.com> wrote:
>
> There is a patch available for link status change on a kni interface. It will send netlink message from the kni driver.
>
> On 25 May 2016 9:45 p.m., "Jason Lixfeld" <jason-dpdk@lixfeld.ca> wrote:
> Hi,
>
> I’m messing around with MoonGen and trying to simplify some basic diagnostics before calling whatever MoonGen script I wanted to call. Right now, I’m trying to find a way to report back the status of a link to see if it’s up so that I know whether or not it can be used as a tx or rx interface for whatever MoonGen script I want to run.
>
> Is there an easy way to do that with an existing dpdk application, or does one need to be an super uber programmer type (which I am not anywhere close to being :)) and write some application to be able to do that?
>
> Not sure if it matters, but I’m using an Intel 82599 6 port SFP+. I’m using v2.2.0 (I think? Whatever the version is that is retrieved from git when I build MoonGen), Debian 8.4.
>
> Sorry for sounding dumb. I’m not a programmer in the least :(
>
> Thanks in advance!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-users] Link status?
2016-05-25 16:14 [dpdk-users] Link status? Jason Lixfeld
2016-05-25 16:29 ` Gadre Nayan
@ 2016-05-25 16:31 ` Thomas Monjalon
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2016-05-25 16:31 UTC (permalink / raw)
To: Jason Lixfeld; +Cc: users
2016-05-25 12:14, Jason Lixfeld:
> Is there an easy way to do that with an existing dpdk application, or does one need to be an super uber programmer type (which I am not anywhere close to being :)) and write some application to be able to do that?
Yes you need to access to a variable inside the application to know that.
You can have a secondary application which looks into the primary one.
You can try to write one or check these apps:
app/proc_info (stats but no link status yet)
examples/ethtool/ethtool-app/ (more complicate than a secondary app)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-25 16:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-25 16:14 [dpdk-users] Link status? Jason Lixfeld
2016-05-25 16:29 ` Gadre Nayan
2016-05-25 16:31 ` Jason Lixfeld
2016-05-25 16:31 ` Thomas Monjalon
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).