we will need it for huge transfer support. Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> --- net/can/j1939/j1939-priv.h | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/net/can/j1939/j1939-priv.h b/net/can/j1939/j1939-priv.h index c9ad7b26b8d4..8bd092a007b5 100644 --- a/net/can/j1939/j1939-priv.h +++ b/net/can/j1939/j1939-priv.h @@ -118,24 +118,28 @@ struct j1939_addr { /* control buffer of the sk_buff */ struct j1939_sk_buff_cb { + /* j1939 clones incoming skb's. + * insock saves the incoming skb->sk + * to determine local generated packets + */ + struct sock *insock; + + /* Offset in bytes withing one ETP session */ + u32 offset; + + /* for tx, MSG_SYN will be used to sync on sockets */ + u32 msg_flags; + struct j1939_addr addr; - priority_t priority; /* Flags for quick lookups during skb processing * These are set in the receive path only */ #define J1939_ECU_LOCAL BIT(0) - u32 src_flags; - u32 dst_flags; + u8 src_flags; + u8 dst_flags; - /* for tx, MSG_SYN will be used to sync on sockets */ - u32 msg_flags; - - /* j1939 clones incoming skb's. - * insock saves the incoming skb->sk - * to determine local generated packets - */ - struct sock *insock; + priority_t priority; }; static inline struct j1939_sk_buff_cb *j1939_skb_to_cb(struct sk_buff *skb) -- 2.19.1