Displaying 5 results from an estimated 5 matches for "eptdev".
Did you mean:
ptdev
2020 Jun 18
2
[PATCH v3 5/5] vhost: add an RPMsg API
...e guest (client).
diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c
index a76b963a7e5..7a03978d002 100644
--- a/drivers/rpmsg/rpmsg_char.c
+++ b/drivers/rpmsg/rpmsg_char.c
@@ -104,6 +104,11 @@ static int rpmsg_ept_cb(struct rpmsg_device *rpdev, void *buf, int len,
struct rpmsg_eptdev *eptdev = priv;
struct sk_buff *skb;
+ if (rpdev->dst == RPMSG_ADDR_ANY) {
+ printk("%s: got client address %#x from first rx!\n", __func__, addr);
+ rpdev->dst = addr;
+ }
+
skb = alloc_skb(len, GFP_ATOMIC);
if (!skb)
return -ENOMEM;
@@ -235,6 +240,12 @@ static ssize_t...
2020 Jun 18
2
[PATCH v3 5/5] vhost: add an RPMsg API
...e guest (client).
diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c
index a76b963a7e5..7a03978d002 100644
--- a/drivers/rpmsg/rpmsg_char.c
+++ b/drivers/rpmsg/rpmsg_char.c
@@ -104,6 +104,11 @@ static int rpmsg_ept_cb(struct rpmsg_device *rpdev, void *buf, int len,
struct rpmsg_eptdev *eptdev = priv;
struct sk_buff *skb;
+ if (rpdev->dst == RPMSG_ADDR_ANY) {
+ printk("%s: got client address %#x from first rx!\n", __func__, addr);
+ rpdev->dst = addr;
+ }
+
skb = alloc_skb(len, GFP_ATOMIC);
if (!skb)
return -ENOMEM;
@@ -235,6 +240,12 @@ static ssize_t...
2020 Jun 18
0
[PATCH v3 5/5] vhost: add an RPMsg API
...-git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c
> index a76b963a7e5..7a03978d002 100644
> --- a/drivers/rpmsg/rpmsg_char.c
> +++ b/drivers/rpmsg/rpmsg_char.c
> @@ -104,6 +104,11 @@ static int rpmsg_ept_cb(struct rpmsg_device *rpdev, void *buf, int len,
> struct rpmsg_eptdev *eptdev = priv;
> struct sk_buff *skb;
>
> + if (rpdev->dst == RPMSG_ADDR_ANY) {
> + printk("%s: got client address %#x from first rx!\n", __func__, addr);
> + rpdev->dst = addr;
> + }
> +
> skb = alloc_skb(len, GFP_ATOMIC);
> if (!skb)
> r...
2020 Jun 17
2
[PATCH v3 5/5] vhost: add an RPMsg API
On Wed, May 27, 2020 at 08:05:41PM +0200, Guennadi Liakhovetski wrote:
> Linux supports running the RPMsg protocol over the VirtIO transport
> protocol, but currently there is only support for VirtIO clients and
> no support for a VirtIO server. This patch adds a vhost-based RPMsg
> server implementation.
This looks really useful, but why is it implemented as an API and not as
a real
2020 Jun 17
2
[PATCH v3 5/5] vhost: add an RPMsg API
On Wed, May 27, 2020 at 08:05:41PM +0200, Guennadi Liakhovetski wrote:
> Linux supports running the RPMsg protocol over the VirtIO transport
> protocol, but currently there is only support for VirtIO clients and
> no support for a VirtIO server. This patch adds a vhost-based RPMsg
> server implementation.
This looks really useful, but why is it implemented as an API and not as
a real