can: make the number of echo skb's configurable
This patch allows the CAN controller driver to define the number of echo skb's used for the local loopback (echo), as suggested by Kurt Van Dijck, with the function: struct net_device *alloc_candev(int sizeof_priv, unsigned int echo_skb_max); The CAN drivers have been adapted accordingly. For the ems_usb driver, as suggested by Sebastian Haas, the number of echo skb's has been increased to 10, which improves the transmission performance a lot. Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
61321bbd62
commit
a6e4bc5304
@@ -50,6 +50,8 @@
|
||||
#include <linux/can/dev.h>
|
||||
#include <linux/can/platform/sja1000.h>
|
||||
|
||||
#define SJA1000_ECHO_SKB_MAX 1 /* the SJA1000 has one TX buffer object */
|
||||
|
||||
#define SJA1000_MAX_IRQ 20 /* max. number of interrupts handled in ISR */
|
||||
|
||||
/* SJA1000 registers - manual section 6.4 (Pelican Mode) */
|
||||
|
Reference in New Issue
Block a user