qcacmn: Add reo destination indication info to skb

Get reo destination indication from REO2SW ring descriptor,
store it to qdf_nbuf_cb of skb.

Change-Id: I5a4c504b2550229a77a435b1f5ddb78c4abe51aa
CRs-Fixed: 2809080
This commit is contained in:
Jinwei Chen
2020-10-30 01:04:30 -07:00
committed by snandini
szülő c3f4e5678d
commit 56f94da675
6 fájl változott, egészen pontosan 50 új sor hozzáadva és 1 régi sor törölve

Fájl megtekintése

@@ -143,4 +143,28 @@ static inline uint8_t qdf_nbuf_is_rx_ipa_smmu_map(qdf_nbuf_t buf)
{
return QDF_NBUF_CB_RX_PACKET_IPA_SMMU_MAP(buf);
}
/**
* qdf_nbuf_set_rx_reo_dest_ind() - set reo destination indication
* @buf: Network buffer
* @value: reo destination indication value to set
*
* Return: none
*/
static inline void qdf_nbuf_set_rx_reo_dest_ind(qdf_nbuf_t buf,
uint8_t value)
{
QDF_NBUF_CB_RX_PACKET_REO_DEST_IND(buf) = value;
}
/**
* qdf_nbuf_get_rx_reo_dest_ind() - get reo destination indication
* @buf: Network buffer
*
* Return reo destination indication value (0 ~ 31)
*/
static inline uint8_t qdf_nbuf_get_rx_reo_dest_ind(qdf_nbuf_t buf)
{
return QDF_NBUF_CB_RX_PACKET_REO_DEST_IND(buf);
}
#endif /* _QDF_NBUF_M_H */

Fájl megtekintése

@@ -143,4 +143,16 @@ static inline uint8_t qdf_nbuf_is_rx_ipa_smmu_map(qdf_nbuf_t buf)
{
return 0;
}
/**
* qdf_nbuf_set_rx_reo_dest_ind() - set reo destination indication
* @buf: Network buffer
* @value: reo destination indication value to set
*
* Return: none
*/
static inline void qdf_nbuf_set_rx_reo_dest_ind(qdf_nbuf_t buf,
uint8_t value)
{
}
#endif /* _QDF_NBUF_W_H */

Fájl megtekintése

@@ -113,6 +113,7 @@ typedef union {
* @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.ipa_smmu_map: do IPA smmu map
* @rx.dev.priv_cb_m.reo_dest_ind: reo destination indication
* @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
@@ -232,7 +233,8 @@ struct qdf_nbuf_cb {
/* exception frame flag */
exc_frm:1,
ipa_smmu_map:1,
reserved:7,
reo_dest_ind:5,
reserved:2,
reserved1:16;
uint32_t tcp_seq_num;
uint32_t tcp_ack_num;

Fájl megtekintése

@@ -81,6 +81,10 @@
(((struct qdf_nbuf_cb *)((skb)->cb))->u.rx.dev.priv_cb_m. \
ipa_smmu_map)
#define QDF_NBUF_CB_RX_PACKET_REO_DEST_IND(skb) \
(((struct qdf_nbuf_cb *)((skb)->cb))->u.rx.dev.priv_cb_m. \
reo_dest_ind)
#define __qdf_nbuf_ipa_owned_get(skb) \
QDF_NBUF_CB_TX_IPA_OWNED(skb)