DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] DPDK port interrupt based link state notification
@ 2016-08-23  9:09 Kapil Adhikesavalu
  2016-08-23 10:27 ` anupam kapoor
       [not found] ` <87r39fiybp.fsf@fatcat.parallelwireless>
  0 siblings, 2 replies; 5+ messages in thread
From: Kapil Adhikesavalu @ 2016-08-23  9:09 UTC (permalink / raw)
  To: users

Hi,

I using DPDK with OVS and looking for a way to get interrupt based link
state notifications for dpdk type ports. As its dpdk port, i believe netlink
socket for RTMGRP_LINK is not going to work.
what is the recommended way to get link state notifications for dpdk ports?

i came across "link status interrupt sample application", which is
providing what i am looking for. http://dpdk.org/doc/guides-16.
04/sample_app_ug/link_status_intr.html

How can i use this application along with openvswitch; should i write some
code within ovs to register for ISR ? or is there a another way i can run
this as a separate application without modifying ovs.

when i tried to run OVS with dpdk and link status app, rte_config was
locked by ovs.
[root@localhost build]# ./link_status_interrupt -c f -n 4 --  -p ffff
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 2 on socket 0
EAL: Detected lcore 3 as core 3 on socket 0
EAL: Detected lcore 4 as core 4 on socket 0
EAL: Detected lcore 5 as core 5 on socket 0
EAL: Detected lcore 6 as core 6 on socket 0
EAL: Detected lcore 7 as core 7 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 8 lcore(s)
EAL: Error - exiting with code: 1
  Cause: Cannot create lock on '/var/run/.rte_config'. Is another primary
process running?

Thanks
kapil.

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

* Re: [dpdk-users] DPDK port interrupt based link state notification
  2016-08-23  9:09 [dpdk-users] DPDK port interrupt based link state notification Kapil Adhikesavalu
@ 2016-08-23 10:27 ` anupam kapoor
       [not found] ` <87r39fiybp.fsf@fatcat.parallelwireless>
  1 sibling, 0 replies; 5+ messages in thread
From: anupam kapoor @ 2016-08-23 10:27 UTC (permalink / raw)
  To: Kapil Adhikesavalu; +Cc: users


>>>>> [2016-08-23T14:39:03+0530]: "Kapil Adhikesavalu" (kapil-adhikesavalu):
,----[ kapil-adhikesavalu ]
| How can i use this application along with openvswitch; should i write some
| code within ovs to register for ISR ? or is there a another way i can run
| this as a separate application without modifying ovs.
`----
each dpdk application would need to manage this on it's own.

concretely, for dpdk enabled ovs, you would need to implement
link-state-notification handlers via canonical
'rte_eth_dev_callback_register(...)' for each of the dpdk ports that ovs
uses.


---
thanks
anupam

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

* Re: [dpdk-users] DPDK port interrupt based link state notification
       [not found] ` <87r39fiybp.fsf@fatcat.parallelwireless>
@ 2016-08-23 10:38   ` Kapil Adhikesavalu
  2016-08-23 10:48     ` anupam kapoor
  0 siblings, 1 reply; 5+ messages in thread
From: Kapil Adhikesavalu @ 2016-08-23 10:38 UTC (permalink / raw)
  To: Anupam Kapoor; +Cc: users

Hi Anupam Kapoor,

Thanks for your input. I don't want to change the OVS code to add link
notification handling.
So, will i be able to run "OVS enabled dpdk" along with one more dpdk app
which will handle just link notification alone; can this both be made to
run in parallel ?

kapil

On Tue, Aug 23, 2016 at 3:47 PM, Anupam Kapoor <akapoor@parallelwireless.com
> wrote:

>
> >>>>> [2016-08-23T14:39:03+0530]: "Kapil Adhikesavalu"
> (kaipl-adhikesavalu):
>
> ,----[ kaipl-adhikesavalu ]
> | How can i use this application along with openvswitch; should i write
> some
> | code within ovs to register for ISR ? or is there a another way i can run
> | this as a separate application without modifying ovs.
> `----
> each dpdk application would need to handle such events on a case-by-case
> basis. so, for your case, if ovs is dpdk enabled, then that's where
> link-state-notifications would need to be handled.
>
> ---
> thanks
> anupam
>

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

* Re: [dpdk-users] DPDK port interrupt based link state notification
  2016-08-23 10:38   ` Kapil Adhikesavalu
@ 2016-08-23 10:48     ` anupam kapoor
  2016-08-23 10:58       ` Kapil Adhikesavalu
  0 siblings, 1 reply; 5+ messages in thread
From: anupam kapoor @ 2016-08-23 10:48 UTC (permalink / raw)
  To: Kapil Adhikesavalu; +Cc: users


>>>>> [2016-08-23T16:08:02+0530]: "Kapil Adhikesavalu" (kapil-adhikesavalu):

,----[ kapil-adhikesavalu ]
| So, will i be able to run "OVS enabled dpdk" along with one more dpdk app
| which will handle just link notification alone; can this both be made to
| run in parallel ?
`----
probably not. multiple dpdk applications sharing same queues will cause
problems e.g. weird lockups etc.

---
thanks
anupam

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

* Re: [dpdk-users] DPDK port interrupt based link state notification
  2016-08-23 10:48     ` anupam kapoor
@ 2016-08-23 10:58       ` Kapil Adhikesavalu
  0 siblings, 0 replies; 5+ messages in thread
From: Kapil Adhikesavalu @ 2016-08-23 10:58 UTC (permalink / raw)
  To: anupam kapoor; +Cc: users

Thanks for the info.

Regards
Kapil.

On Tue, Aug 23, 2016 at 4:18 PM, anupam kapoor <anupam.kapoor@gmail.com>
wrote:

>
> >>>>> [2016-08-23T16:08:02+0530]: "Kapil Adhikesavalu"
> (kapil-adhikesavalu):
>
> ,----[ kapil-adhikesavalu ]
> | So, will i be able to run "OVS enabled dpdk" along with one more dpdk app
> | which will handle just link notification alone; can this both be made to
> | run in parallel ?
> `----
> probably not. multiple dpdk applications sharing same queues will cause
> problems e.g. weird lockups etc.
>
> ---
> thanks
> anupam
>

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

end of thread, other threads:[~2016-08-23 10:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23  9:09 [dpdk-users] DPDK port interrupt based link state notification Kapil Adhikesavalu
2016-08-23 10:27 ` anupam kapoor
     [not found] ` <87r39fiybp.fsf@fatcat.parallelwireless>
2016-08-23 10:38   ` Kapil Adhikesavalu
2016-08-23 10:48     ` anupam kapoor
2016-08-23 10:58       ` Kapil Adhikesavalu

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).