aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/can/dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/can/dev.h')
-rw-r--r--include/linux/can/dev.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h
index 055aaf5ed9af..a83e1f632eb7 100644
--- a/include/linux/can/dev.h
+++ b/include/linux/can/dev.h
@@ -143,7 +143,12 @@ u8 can_dlc2len(u8 can_dlc);
143/* map the sanitized data length to an appropriate data length code */ 143/* map the sanitized data length to an appropriate data length code */
144u8 can_len2dlc(u8 len); 144u8 can_len2dlc(u8 len);
145 145
146struct net_device *alloc_candev(int sizeof_priv, unsigned int echo_skb_max); 146struct net_device *alloc_candev_mqs(int sizeof_priv, unsigned int echo_skb_max,
147 unsigned int txqs, unsigned int rxqs);
148#define alloc_candev(sizeof_priv, echo_skb_max) \
149 alloc_candev_mqs(sizeof_priv, echo_skb_max, 1, 1)
150#define alloc_candev_mq(sizeof_priv, echo_skb_max, count) \
151 alloc_candev_mqs(sizeof_priv, echo_skb_max, count, count)
147void free_candev(struct net_device *dev); 152void free_candev(struct net_device *dev);
148 153
149/* a candev safe wrapper around netdev_priv */ 154/* a candev safe wrapper around netdev_priv */