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
---
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
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
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
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
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
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
> +
> +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
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
9 matches
Mail list logo