Jan Kiszka wrote:
Wolfgang Grandegger wrote:
Hi Jan,
Jan Kiszka wrote:
Hi Wolfgang,
[...deletions...]
Last remark: For the sake of completeness, tx-loopback should also be
implemented in the virtual CAN driver.
The virtual CAN driver already works like TX loopback. It routes TX
messages
Hi Jan,
attached is a patch implementing the TX loopback, apart from some other
fixes and improvements. The TX loopback to foreign local sockets allows
to have a net-alike behavior of the CAN bus. Local sockets listening to
a device can receive TX messages as well. As discussed, the TX
Attached is the missing patch!
Wolfgang Grandegger wrote:
Hi Jan,
attached is a patch implementing the TX loopback, apart from some other
fixes and improvements. The TX loopback to foreign local sockets allows
to have a net-alike behavior of the CAN bus. Local sockets listening to
a device
Jan Kiszka wrote:
Wolfgang Grandegger wrote:
@@ -894,6 +937,12 @@
/* We got access */
+#ifdef CONFIG_XENO_DRIVERS_RTCAN_TX_LOOPBACK
+/* Push message onto stack for loopback when TX done */
+if (sock-tx_loopback)
+rtcan_tx_push(dev, sock, frame);
+#endif /*
Wolfgang Grandegger wrote:
Hi Jan,
Jan Kiszka wrote:
Hi Wolfgang,
[...deletions...]
Last remark: For the sake of completeness, tx-loopback should also be
implemented in the virtual CAN driver.
The virtual CAN driver already works like TX loopback. It routes TX
messages to local