Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-08-28 Thread Gaëtan Rivet
ia > Sent: Wednesday, July 5, 2017 5:04 PM > To: Thomas Monjalon > Cc: dev@dpdk.org; Zhang, Helin ; Wu, Jingjing > > Subject: Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug > > > > On 7/5/2017 3:32 PM, Thomas Monjalon wrote: > > 0

Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-08-22 Thread Guo, Jia
--- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Guo, Jia Sent: Wednesday, July 5, 2017 5:04 PM To: Thomas Monjalon Cc: dev@dpdk.org; Zhang, Helin ; Wu, Jingjing Subject: Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug On 7/5/2017 3:32 PM, Thomas Monjalon wrote: > 05/07/2017

Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-07-05 Thread Guo, Jia
On 7/5/2017 3:32 PM, Thomas Monjalon wrote: 05/07/2017 05:02, Guo, Jia: hi, thomas On 7/5/2017 7:45 AM, Thomas Monjalon wrote: Hi, This is an interesting step for hotplug in DPDK. 28/06/2017 13:07, Jeff Guo: + netlink_fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); It

Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-07-05 Thread Thomas Monjalon
05/07/2017 05:02, Guo, Jia: > hi, thomas > > > On 7/5/2017 7:45 AM, Thomas Monjalon wrote: > > Hi, > > > > This is an interesting step for hotplug in DPDK. > > > > 28/06/2017 13:07, Jeff Guo: > >> + netlink_fd = socket(PF_NETLINK, SOCK_DGRAM, > >> NETLINK_KOBJECT_UEVENT); > > It is monitor

Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-07-04 Thread Guo, Jia
hi, thomas On 7/5/2017 7:45 AM, Thomas Monjalon wrote: Hi, This is an interesting step for hotplug in DPDK. 28/06/2017 13:07, Jeff Guo: + netlink_fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); It is monitoring the whole system... +int +rte_uevent_get(int fd, struct rte

Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-07-04 Thread Thomas Monjalon
Hi, This is an interesting step for hotplug in DPDK. 28/06/2017 13:07, Jeff Guo: > + netlink_fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); It is monitoring the whole system... > +int > +rte_uevent_get(int fd, struct rte_uevent *uevent) > +{ > + int ret; > + char

Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-06-28 Thread Guo, Jia
The buf have contain lot of consistent '/0', so it is why I need to check that. anyway I will refine that and other return issue in v3. Thanks jingjing . Best regards, Jeff Guo -Original Message- From: Wu, Jingjing Sent: Thursday, June 29, 2017 10:25 AM To: Guo, Jia ; Zhang, Helin Cc

Re: [dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-06-28 Thread Wu, Jingjing
> + > +int > +rte_uevent_connect(void) > +{ > + struct sockaddr_nl addr; > + int ret; > + int netlink_fd = -1; > + int size = 64 * 1024; > + int nonblock = 1; > + memset(&addr, 0, sizeof(addr)); > + addr.nl_family = AF_NETLINK; > + addr.nl_pid = 0; > + addr.nl_gr

[dpdk-dev] [PATCH v2 1/2] eal: add uevent api for hot plug

2017-06-28 Thread Jeff Guo
From: "Guo, Jia" This patch aim to add a variable "uevent_fd" in structure "rte_intr_handle" for enable kernel object uevent monitoring, and add some uevent API in rte eal interrupt, that is “rte_uevent_connect” and “rte_uevent_get”, so that all driver could use these API to monitor and read out