Module: xenomai-3
Branch: stable-3.0.x
Commit: 4008b601733bb55488bd5929514191acce783cde
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=4008b601733bb55488bd5929514191acce783cde

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Oct 31 21:31:00 2015 +0100

drivers/rtnet: fix loopback

Allocate a device pool, since rtdev_xmit now compensates the sent packet
with a packet from the device pool.

---

 kernel/drivers/net/drivers/loopback.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/drivers/net/drivers/loopback.c 
b/kernel/drivers/net/drivers/loopback.c
index b404a64..ef5323a 100644
--- a/kernel/drivers/net/drivers/loopback.c
+++ b/kernel/drivers/net/drivers/loopback.c
@@ -95,7 +95,7 @@ static int __init loopback_init(void)
 
     printk("initializing loopback...\n");
 
-    if ((rtdev = rt_alloc_etherdev(0, 0)) == NULL)
+    if ((rtdev = rt_alloc_etherdev(0, 1)) == NULL)
        return -ENODEV;
 
     rt_rtdev_connect(rtdev, &RTDEV_manager);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to