Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c87c2f33 authored by Jinwei Chen's avatar Jinwei Chen Committed by nshrivas
Browse files

qcacmn: add exception frame flag in qdf_nbuf_cb

add exception frame flag in qdf_nbuf_cb structure.

Change-Id: I97f61973cc1c0d00fe66cc0e8aac0c7b4b16bb56
CRs-Fixed: 2680255
parent ec11571f
Loading
Loading
Loading
Loading
+24 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2017,2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2017,2019-2020 The Linux Foundation. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -96,4 +96,27 @@ static inline uint16_t qdf_nbuf_get_rx_flow_tag(qdf_nbuf_t buf)
{
	return 0;
}

/**
 * qdf_nbuf_set_exc_frame() - set exception frame flag
 * @buf: Network buffer whose cb is to set exception frame flag
 * @value: exception frame flag, value 0 or 1.
 *
 * Return: none
 */
static inline void qdf_nbuf_set_exc_frame(qdf_nbuf_t buf, uint8_t value)
{
	QDF_NBUF_CB_RX_PACKET_EXC_FRAME(buf) = value;
}

/**
 * qdf_nbuf_is_exc_frame() - check exception frame flag bit
 * @buf: Network buffer to get exception flag
 *
 * Return: 0 or 1
 */
static inline uint8_t qdf_nbuf_is_exc_frame(qdf_nbuf_t buf)
{
	return QDF_NBUF_CB_RX_PACKET_EXC_FRAME(buf);
}
#endif /* _QDF_NBUF_M_H */
+11 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2017,2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2017,2019-2020 The Linux Foundation. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -110,4 +110,14 @@ static inline uint16_t qdf_nbuf_get_rx_flow_tag(qdf_nbuf_t buf)
	return __qdf_nbuf_get_rx_flow_tag(buf);
}

/**
 * qdf_nbuf_set_exc_frame() - set exception frame flag
 * @buf: Network buffer whose cb is to set exception frame flag
 * @value: exception frame flag, value 0 or 1.
 *
 * Return: none
 */
static inline void qdf_nbuf_set_exc_frame(qdf_nbuf_t buf, uint8_t value)
{
}
#endif /* _QDF_NBUF_W_H */
+4 −1
Original line number Diff line number Diff line
@@ -108,6 +108,7 @@ typedef union {
 * @rx.dev.priv_cb_m.flush_ind: flush indication
 * @rx.dev.priv_cb_m.packet_buf_pool:  packet buff bool
 * @rx.dev.priv_cb_m.l3_hdr_pad: L3 header padding offset
 * @rx.dev.priv_cb_m.exc_frm: exception frame
 * @rx.dev.priv_cb_m.tcp_seq_num: TCP sequence number
 * @rx.dev.priv_cb_m.tcp_ack_num: TCP ACK number
 * @rx.dev.priv_cb_m.lro_ctx: LRO context
@@ -225,7 +226,9 @@ struct qdf_nbuf_cb {
						 packet_buf_pool:1,
						 reserved:4,
						 l3_hdr_pad:8,
						 reserved1:16;
						 /* exception frame flag */
						 exc_frm:1,
						 reserved1:15;
					uint32_t tcp_seq_num;
					uint32_t tcp_ack_num;
					union {
+4 −0
Original line number Diff line number Diff line
@@ -73,6 +73,10 @@
	 (((struct qdf_nbuf_cb *)((skb)->cb))->u.rx.dev.priv_cb_m. \
	 l3_hdr_pad)

#define  QDF_NBUF_CB_RX_PACKET_EXC_FRAME(skb) \
	 (((struct qdf_nbuf_cb *)((skb)->cb))->u.rx.dev.priv_cb_m. \
	 exc_frm)

#define __qdf_nbuf_ipa_owned_get(skb) \
	QDF_NBUF_CB_TX_IPA_OWNED(skb)