summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoakim Zhang <qiangqing.zhang@nxp.com>2019-04-20 15:56:00 +0800
committerJoakim Zhang <qiangqing.zhang@nxp.com>2019-04-30 13:30:03 +0800
commitb50908d6349b8e817160869ba4bae8dd5f4e71d5 (patch)
tree82b23c7c0885b0f335e43a1b3f2bd17b68b1e2d2 /include
parent80df4963ad60e98d2e8badd40ddd3596ec3091fe (diff)
MLK-21510 can: flexcan: allocate skb in mailbox_read
We allocate skb according to "fd on" or "fd off" before, this may not reasonable. Such as, transfer normal framle when fd mode is on. Allcoating skb based on "EDL" bit from mailbox ctrl field is more reasonable. Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/can/rx-offload.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/can/rx-offload.h b/include/linux/can/rx-offload.h
index 6448e7dfc170..c54d80ef4314 100644
--- a/include/linux/can/rx-offload.h
+++ b/include/linux/can/rx-offload.h
@@ -23,8 +23,9 @@
struct can_rx_offload {
struct net_device *dev;
- unsigned int (*mailbox_read)(struct can_rx_offload *offload, struct canfd_frame *cf,
- u32 *timestamp, unsigned int mb);
+ unsigned int (*mailbox_read)(struct can_rx_offload *offload, bool drop,
+ struct sk_buff **skb, u32 *timestamp,
+ unsigned int mb);
struct sk_buff_head skb_queue;
u32 skb_queue_len_max;
@@ -35,8 +36,6 @@ struct can_rx_offload {
struct napi_struct napi;
bool inc;
-
- bool is_canfd;
};
int can_rx_offload_add_timestamp(struct net_device *dev, struct can_rx_offload *offload);