diff options
author | Stephane Grosjean <s.grosjean@peak-system.com> | 2014-01-15 03:50:13 -0500 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-02-04 03:34:33 -0500 |
commit | cb2518ca9f06dfcfa3d175773631bfb1e461bdc7 (patch) | |
tree | 862c310c2fd5b765526ec112ae12c508e4fdab65 /include/linux/can/dev.h | |
parent | 16f6b87ac524f073c93ea3caadfd5111d03ecb4f (diff) |
can: add ability to allocate CANFD frame in skb data
This patch adds the ability of allocating a CANFD frame data structure in the
skb data area.
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include/linux/can/dev.h')
-rw-r--r-- | include/linux/can/dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h index fb0ab651a041..dc5f9026b67f 100644 --- a/include/linux/can/dev.h +++ b/include/linux/can/dev.h | |||
@@ -124,6 +124,8 @@ unsigned int can_get_echo_skb(struct net_device *dev, unsigned int idx); | |||
124 | void can_free_echo_skb(struct net_device *dev, unsigned int idx); | 124 | void can_free_echo_skb(struct net_device *dev, unsigned int idx); |
125 | 125 | ||
126 | struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf); | 126 | struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf); |
127 | struct sk_buff *alloc_canfd_skb(struct net_device *dev, | ||
128 | struct canfd_frame **cfd); | ||
127 | struct sk_buff *alloc_can_err_skb(struct net_device *dev, | 129 | struct sk_buff *alloc_can_err_skb(struct net_device *dev, |
128 | struct can_frame **cf); | 130 | struct can_frame **cf); |
129 | 131 | ||