aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/can/dev.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-12-08 11:33:24 +0100
committerTakashi Iwai <tiwai@suse.de>2014-12-08 11:33:24 +0100
commit77de61c3975da6f2200935c341e84018ece6ce36 (patch)
tree36508cf93ef62a80c988fa18c86eda1274e03877 /include/linux/can/dev.h
parentALSA: usb-audio: Don't resubmit pending URBs at MIDI error recovery (diff)
parentALSA: atmel_abdac: Add missing clock prepare (diff)
downloadlinux-dev-77de61c3975da6f2200935c341e84018ece6ce36.tar.xz
linux-dev-77de61c3975da6f2200935c341e84018ece6ce36.zip
Merge branch 'for-next' into for-linus
Diffstat (limited to 'include/linux/can/dev.h')
-rw-r--r--include/linux/can/dev.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h
index 6992afc6ba7f..b37ea95bc348 100644
--- a/include/linux/can/dev.h
+++ b/include/linux/can/dev.h
@@ -99,6 +99,12 @@ inval_skb:
return 1;
}
+static inline bool can_is_canfd_skb(const struct sk_buff *skb)
+{
+ /* the CAN specific type of skb is identified by its data length */
+ return skb->len == CANFD_MTU;
+}
+
/* get data length from can_dlc with sanitized can_dlc */
u8 can_dlc2len(u8 can_dlc);