qcacmn: Save Rx TLV offset info so as to recover in FISA

Packets delivered to FISA via exception err path doesnot have TLVs.
FISA handling requires additional TLVs. dp rx core handling
skips TLVs, save TLV length info in nbuf->cb so that TLVs
are recovered back in FISA.

Change-Id: I53fab2e19abcbf82697ea6f53a4ddf3ea0dd0699
CRs-Fixed: 2620844
Cette révision appartient à :
Manjunathappa Prakash
2020-02-10 19:35:18 -08:00
révisé par nshrivas
Parent ff26d1c783
révision c4667b8b12
5 fichiers modifiés avec 26 ajouts et 21 suppressions

Voir le fichier

@@ -107,6 +107,7 @@ typedef union {
* @rx.dev.priv_cb_m.peer_cached_buf_frm: peer cached buffer
* @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.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
@@ -222,7 +223,8 @@ struct qdf_nbuf_cb {
peer_cached_buf_frm:1,
flush_ind:1,
packet_buf_pool:1,
reserved:12,
l3_hdr_pad:3,
reserved:9,
reserved1:16;
uint32_t tcp_seq_num;
uint32_t tcp_ack_num;

Voir le fichier

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-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
@@ -69,6 +69,10 @@
(((struct qdf_nbuf_cb *)((skb)->cb))->u.rx.dev.priv_cb_m. \
packet_buf_pool)
#define QDF_NBUF_CB_RX_PACKET_L3_HDR_PAD(skb) \
(((struct qdf_nbuf_cb *)((skb)->cb))->u.rx.dev.priv_cb_m. \
l3_hdr_pad)
#define __qdf_nbuf_ipa_owned_get(skb) \
QDF_NBUF_CB_TX_IPA_OWNED(skb)