Lines Matching refs:nbuf
103 qdf_nbuf_t nbuf, struct hal_rx_msdu_metadata msdu_info) in is_sa_da_idx_valid() argument
105 if ((qdf_nbuf_is_sa_valid(nbuf) && (msdu_info.sa_idx > max_ast)) || in is_sa_da_idx_valid()
106 (!qdf_nbuf_is_da_mcbc(nbuf) && qdf_nbuf_is_da_valid(nbuf) && in is_sa_da_idx_valid()
126 qdf_nbuf_t nbuf) in dp_rx_mec_check_wrapper() argument
128 return dp_rx_mcast_echo_check(soc, txrx_peer, rx_tlv_hdr, nbuf); in dp_rx_mec_check_wrapper()
134 qdf_nbuf_t nbuf) in dp_rx_mec_check_wrapper() argument
141 dp_rx_intrabss_ucast_check_rh(struct dp_soc *soc, qdf_nbuf_t nbuf, in dp_rx_intrabss_ucast_check_rh() argument
151 if (!qdf_nbuf_is_da_valid(nbuf) || qdf_nbuf_is_da_mcbc(nbuf)) in dp_rx_intrabss_ucast_check_rh()
211 qdf_nbuf_t nbuf, in dp_rx_intrabss_fwd_rh() argument
225 if (qdf_nbuf_is_da_mcbc(nbuf) && !ta_txrx_peer->bss_peer) in dp_rx_intrabss_fwd_rh()
227 nbuf, tid_stats, 0); in dp_rx_intrabss_fwd_rh()
230 nbuf)) in dp_rx_intrabss_fwd_rh()
233 if (dp_rx_intrabss_ucast_check_rh(soc, nbuf, ta_txrx_peer, in dp_rx_intrabss_fwd_rh()
236 rx_tlv_hdr, nbuf, tid_stats, in dp_rx_intrabss_fwd_rh()
324 qdf_nbuf_t nbuf) in dp_rx_mark_first_packet_after_wow_wakeup_rh() argument
332 qdf_nbuf_mark_wakeup_frame(nbuf); in dp_rx_mark_first_packet_after_wow_wakeup_rh()
340 qdf_nbuf_t nbuf) {} in dp_rx_mark_first_packet_after_wow_wakeup_rh() argument
348 qdf_nbuf_t nbuf, in dp_rx_deliver_to_osif_stack_rh() argument
353 dp_rx_eapol_deliver_to_stack(soc, vdev, txrx_peer, nbuf, NULL); in dp_rx_deliver_to_osif_stack_rh()
355 dp_rx_deliver_to_stack(soc, vdev, txrx_peer, nbuf, NULL); in dp_rx_deliver_to_osif_stack_rh()
362 qdf_nbuf_t nbuf, in dp_rx_deliver_to_osif_stack_rh() argument
366 dp_rx_deliver_to_stack(soc, vdev, txrx_peer, nbuf, NULL); in dp_rx_deliver_to_osif_stack_rh()
371 dp_rx_decrypt_unecrypt_err_handler_rh(struct dp_soc *soc, qdf_nbuf_t nbuf, in dp_rx_decrypt_unecrypt_err_handler_rh() argument
387 rx_tlv_hdr = qdf_nbuf_data(nbuf); in dp_rx_decrypt_unecrypt_err_handler_rh()
401 if (qdf_unlikely(qdf_nbuf_is_rx_chfrag_cont(nbuf))) { in dp_rx_decrypt_unecrypt_err_handler_rh()
407 peer_id = QDF_NBUF_CB_RX_PEER_ID(nbuf); in dp_rx_decrypt_unecrypt_err_handler_rh()
414 qdf_nbuf_len(nbuf)); in dp_rx_decrypt_unecrypt_err_handler_rh()
416 dp_rx_process_invalid_peer_wrapper(soc, nbuf, true, mac_id); in dp_rx_decrypt_unecrypt_err_handler_rh()
432 qdf_nbuf_set_pktlen(nbuf, pkt_len); in dp_rx_decrypt_unecrypt_err_handler_rh()
434 qdf_nbuf_set_next(nbuf, NULL); in dp_rx_decrypt_unecrypt_err_handler_rh()
436 qdf_nbuf_set_rx_chfrag_start(nbuf, 1); in dp_rx_decrypt_unecrypt_err_handler_rh()
437 qdf_nbuf_set_rx_chfrag_end(nbuf, 1); in dp_rx_decrypt_unecrypt_err_handler_rh()
451 dp_rx_skip_tlvs(soc, nbuf, l2_hdr_offset); in dp_rx_decrypt_unecrypt_err_handler_rh()
463 if ((qdf_nbuf_is_ipv4_wapi_pkt(nbuf)) || in dp_rx_decrypt_unecrypt_err_handler_rh()
465 (qdf_nbuf_is_ipv4_eapol_pkt(nbuf)))) { in dp_rx_decrypt_unecrypt_err_handler_rh()
470 eh = (qdf_ether_header_t *)qdf_nbuf_data(nbuf); in dp_rx_decrypt_unecrypt_err_handler_rh()
474 1, qdf_nbuf_len(nbuf), 0); in dp_rx_decrypt_unecrypt_err_handler_rh()
477 1, qdf_nbuf_len(nbuf), 0); in dp_rx_decrypt_unecrypt_err_handler_rh()
481 qdf_nbuf_len(nbuf), in dp_rx_decrypt_unecrypt_err_handler_rh()
486 dp_rx_deliver_raw(vdev, nbuf, txrx_peer, 0); in dp_rx_decrypt_unecrypt_err_handler_rh()
489 dp_rx_update_protocol_tag(soc, vdev, nbuf, rx_tlv_hdr, in dp_rx_decrypt_unecrypt_err_handler_rh()
492 dp_rx_update_flow_tag(soc, vdev, nbuf, rx_tlv_hdr, true); in dp_rx_decrypt_unecrypt_err_handler_rh()
494 qdf_nbuf_set_exc_frame(nbuf, 1); in dp_rx_decrypt_unecrypt_err_handler_rh()
495 dp_rx_deliver_to_osif_stack_rh(soc, vdev, txrx_peer, nbuf, NULL, in dp_rx_decrypt_unecrypt_err_handler_rh()
496 qdf_nbuf_is_ipv4_eapol_pkt(nbuf)); in dp_rx_decrypt_unecrypt_err_handler_rh()
507 dp_rx_nbuf_free(nbuf); in dp_rx_decrypt_unecrypt_err_handler_rh()
511 dp_rx_2k_jump_oor_err_handler_rh(struct dp_soc *soc, qdf_nbuf_t nbuf, in dp_rx_2k_jump_oor_err_handler_rh() argument
520 rx_tlv_hdr = qdf_nbuf_data(nbuf); in dp_rx_2k_jump_oor_err_handler_rh()
521 if (qdf_unlikely(qdf_nbuf_is_rx_chfrag_cont(nbuf))) { in dp_rx_2k_jump_oor_err_handler_rh()
527 peer_id = QDF_NBUF_CB_RX_PEER_ID(nbuf); in dp_rx_2k_jump_oor_err_handler_rh()
543 if (dp_rx_deliver_special_frame(soc, txrx_peer, nbuf, frame_mask, in dp_rx_2k_jump_oor_err_handler_rh()
565 dp_rx_nbuf_free(nbuf); in dp_rx_2k_jump_oor_err_handler_rh()
568 static void dp_rx_mic_err_handler_rh(struct dp_soc *soc, qdf_nbuf_t nbuf) in dp_rx_mic_err_handler_rh() argument
587 qdf_nbuf_data(nbuf))) in dp_rx_mic_err_handler_rh()
590 peer_id = QDF_NBUF_CB_RX_PEER_ID(nbuf); in dp_rx_mic_err_handler_rh()
612 is_raw = HAL_IS_DECAP_FORMAT_RAW(soc->hal_soc, qdf_nbuf_data(nbuf)); in dp_rx_mic_err_handler_rh()
615 qdf_nbuf_data(nbuf)); in dp_rx_mic_err_handler_rh()
619 qdf_nbuf_data(nbuf)); in dp_rx_mic_err_handler_rh()
621 qdf_nbuf_data(nbuf)); in dp_rx_mic_err_handler_rh()
624 tid, rx_seq, nbuf); in dp_rx_mic_err_handler_rh()
634 if (qdf_unlikely(qdf_nbuf_is_rx_chfrag_cont(nbuf))) { in dp_rx_mic_err_handler_rh()
640 if (hal_rx_mpdu_get_addr1(soc->hal_soc, qdf_nbuf_data(nbuf), in dp_rx_mic_err_handler_rh()
646 if (hal_rx_mpdu_get_addr2(soc->hal_soc, qdf_nbuf_data(nbuf), in dp_rx_mic_err_handler_rh()
666 dp_rx_nbuf_free(nbuf); in dp_rx_mic_err_handler_rh()
679 dp_rx_nbuf_free(rx_desc->nbuf); in dp_rx_err_handler_rh()
683 dp_rx_mic_err_handler_rh(soc, rx_desc->nbuf); in dp_rx_err_handler_rh()
687 dp_rx_2k_jump_oor_err_handler_rh(soc, rx_desc->nbuf, in dp_rx_err_handler_rh()
692 dp_rx_decrypt_unecrypt_err_handler_rh(soc, rx_desc->nbuf, in dp_rx_err_handler_rh()
700 dp_rx_nbuf_free(rx_desc->nbuf); in dp_rx_err_handler_rh()
717 qdf_nbuf_t nbuf, next; in dp_rx_data_indication_handler() local
804 if (qdf_unlikely(!rx_desc && !rx_desc->nbuf && in dp_rx_data_indication_handler()
861 qdf_nbuf_set_rx_retry_flag(rx_desc->nbuf, 1); in dp_rx_data_indication_handler()
864 qdf_nbuf_set_raw_frame(rx_desc->nbuf, 1); in dp_rx_data_indication_handler()
875 QDF_NBUF_CB_RX_PEER_ID(rx_desc->nbuf) = peer_id; in dp_rx_data_indication_handler()
876 QDF_NBUF_CB_RX_VDEV_ID(rx_desc->nbuf) = vdev_id; in dp_rx_data_indication_handler()
878 rx_desc->nbuf); in dp_rx_data_indication_handler()
889 qdf_nbuf_set_rx_chfrag_start(rx_desc->nbuf, 1); in dp_rx_data_indication_handler()
892 qdf_nbuf_set_rx_chfrag_cont(rx_desc->nbuf, 1); in dp_rx_data_indication_handler()
895 qdf_nbuf_set_rx_chfrag_end(rx_desc->nbuf, 1); in dp_rx_data_indication_handler()
898 qdf_nbuf_set_da_mcbc(rx_desc->nbuf, 1); in dp_rx_data_indication_handler()
901 qdf_nbuf_set_da_valid(rx_desc->nbuf, 1); in dp_rx_data_indication_handler()
904 qdf_nbuf_set_sa_valid(rx_desc->nbuf, 1); in dp_rx_data_indication_handler()
906 qdf_nbuf_set_tid_val(rx_desc->nbuf, in dp_rx_data_indication_handler()
911 rx_desc->nbuf, in dp_rx_data_indication_handler()
914 QDF_NBUF_CB_RX_PKT_LEN(rx_desc->nbuf) = msdu_len; in dp_rx_data_indication_handler()
916 QDF_NBUF_CB_RX_CTX_ID(rx_desc->nbuf) = rx_ctx_id; in dp_rx_data_indication_handler()
977 nbuf = nbuf_head; in dp_rx_data_indication_handler()
978 while (nbuf) { in dp_rx_data_indication_handler()
979 next = nbuf->next; in dp_rx_data_indication_handler()
981 if (qdf_unlikely(dp_rx_is_raw_frame_dropped(nbuf))) { in dp_rx_data_indication_handler()
982 nbuf = next; in dp_rx_data_indication_handler()
987 rx_tlv_hdr = qdf_nbuf_data(nbuf); in dp_rx_data_indication_handler()
988 vdev_id = QDF_NBUF_CB_RX_VDEV_ID(nbuf); in dp_rx_data_indication_handler()
989 peer_id = QDF_NBUF_CB_RX_PEER_ID(nbuf); in dp_rx_data_indication_handler()
992 if (qdf_nbuf_is_rx_chfrag_start(nbuf)) { in dp_rx_data_indication_handler()
993 tid = qdf_nbuf_get_tid_val(nbuf); in dp_rx_data_indication_handler()
996 dp_rx_nbuf_free(nbuf); in dp_rx_data_indication_handler()
997 nbuf = next; in dp_rx_data_indication_handler()
1004 dp_rx_get_txrx_peer_and_vdev(soc, nbuf, peer_id, in dp_rx_data_indication_handler()
1011 nbuf = next; in dp_rx_data_indication_handler()
1019 dp_rx_get_txrx_peer_and_vdev(soc, nbuf, peer_id, in dp_rx_data_indication_handler()
1026 nbuf = next; in dp_rx_data_indication_handler()
1032 QDF_NBUF_CB_DP_TRACE_PRINT(nbuf) = false; in dp_rx_data_indication_handler()
1033 qdf_dp_trace_set_track(nbuf, QDF_RX); in dp_rx_data_indication_handler()
1034 QDF_NBUF_CB_RX_DP_TRACE(nbuf) = 1; in dp_rx_data_indication_handler()
1035 QDF_NBUF_CB_RX_PACKET_TRACK(nbuf) = in dp_rx_data_indication_handler()
1044 qdf_nbuf_set_priority(nbuf, tid); in dp_rx_data_indication_handler()
1046 DP_RX_TID_SAVE(nbuf, tid); in dp_rx_data_indication_handler()
1049 qdf_nbuf_set_timestamp(nbuf); in dp_rx_data_indication_handler()
1061 if (qdf_likely(!qdf_nbuf_is_rx_chfrag_cont(nbuf))) { in dp_rx_data_indication_handler()
1070 dp_rx_nbuf_free(nbuf); in dp_rx_data_indication_handler()
1071 nbuf = next; in dp_rx_data_indication_handler()
1076 dp_rx_nbuf_free(nbuf); in dp_rx_data_indication_handler()
1077 nbuf = next; in dp_rx_data_indication_handler()
1110 if (qdf_unlikely(qdf_nbuf_is_frag(nbuf))) { in dp_rx_data_indication_handler()
1122 qdf_nbuf_set_da_mcbc(nbuf, is_mcbc); in dp_rx_data_indication_handler()
1123 qdf_nbuf_set_da_valid(nbuf, is_da_vld); in dp_rx_data_indication_handler()
1124 qdf_nbuf_set_sa_valid(nbuf, is_sa_vld); in dp_rx_data_indication_handler()
1126 qdf_nbuf_pull_head(nbuf, soc->rx_pkt_tlv_size); in dp_rx_data_indication_handler()
1127 } else if (qdf_nbuf_is_rx_chfrag_cont(nbuf)) { in dp_rx_data_indication_handler()
1128 msdu_len = QDF_NBUF_CB_RX_PKT_LEN(nbuf); in dp_rx_data_indication_handler()
1129 nbuf = dp_rx_sg_create(soc, nbuf); in dp_rx_data_indication_handler()
1130 next = nbuf->next; in dp_rx_data_indication_handler()
1132 if (qdf_nbuf_is_raw_frame(nbuf)) { in dp_rx_data_indication_handler()
1139 dp_rx_nbuf_free(nbuf); in dp_rx_data_indication_handler()
1143 nbuf = next; in dp_rx_data_indication_handler()
1147 msdu_len = QDF_NBUF_CB_RX_PKT_LEN(nbuf); in dp_rx_data_indication_handler()
1152 qdf_nbuf_set_pktlen(nbuf, pkt_len); in dp_rx_data_indication_handler()
1153 dp_rx_skip_tlvs(soc, nbuf, msdu_metadata.l3_hdr_pad); in dp_rx_data_indication_handler()
1156 dp_rx_send_pktlog(soc, rx_pdev, nbuf, QDF_TX_RX_STATUS_OK); in dp_rx_data_indication_handler()
1164 dp_rx_nbuf_free(nbuf); in dp_rx_data_indication_handler()
1166 nbuf = next; in dp_rx_data_indication_handler()
1175 !qdf_nbuf_is_raw_frame(nbuf)) { in dp_rx_data_indication_handler()
1176 bool is_eapol = qdf_nbuf_is_ipv4_eapol_pkt(nbuf) || in dp_rx_data_indication_handler()
1177 qdf_nbuf_is_ipv4_wapi_pkt(nbuf); in dp_rx_data_indication_handler()
1183 dp_rx_nbuf_free(nbuf); in dp_rx_data_indication_handler()
1184 nbuf = next; in dp_rx_data_indication_handler()
1190 dp_rx_cksum_offload(vdev->pdev, nbuf, rx_tlv_hdr); in dp_rx_data_indication_handler()
1192 dp_rx_msdu_stats_update(soc, nbuf, rx_tlv_hdr, txrx_peer, in dp_rx_data_indication_handler()
1207 if (!is_sa_da_idx_valid(max_ast, nbuf, in dp_rx_data_indication_handler()
1209 dp_rx_nbuf_free(nbuf); in dp_rx_data_indication_handler()
1210 nbuf = next; in dp_rx_data_indication_handler()
1217 nbuf))) { in dp_rx_data_indication_handler()
1221 QDF_NBUF_CB_RX_PKT_LEN(nbuf), in dp_rx_data_indication_handler()
1223 dp_rx_nbuf_free(nbuf); in dp_rx_data_indication_handler()
1224 nbuf = next; in dp_rx_data_indication_handler()
1232 nbuf, in dp_rx_data_indication_handler()
1239 nbuf, in dp_rx_data_indication_handler()
1242 nbuf = next; in dp_rx_data_indication_handler()
1248 dp_rx_fill_gro_info(soc, rx_tlv_hdr, nbuf, &rx_ol_pkt_cnt); in dp_rx_data_indication_handler()
1250 dp_rx_update_stats(soc, nbuf); in dp_rx_data_indication_handler()
1253 current_time, nbuf); in dp_rx_data_indication_handler()
1257 nbuf); in dp_rx_data_indication_handler()
1259 QDF_NBUF_CB_RX_PKT_LEN(nbuf)); in dp_rx_data_indication_handler()
1263 QDF_NBUF_CB_RX_PKT_LEN(nbuf), in dp_rx_data_indication_handler()
1267 nbuf = next; in dp_rx_data_indication_handler()
1537 qdf_nbuf_t nbuf; in dp_rx_frag_indication_handler() local
1556 if (qdf_unlikely(!rx_desc && !rx_desc->nbuf && in dp_rx_frag_indication_handler()
1569 nbuf = rx_desc->nbuf; in dp_rx_frag_indication_handler()
1570 QDF_NBUF_CB_RX_PKT_LEN(nbuf) = in dp_rx_frag_indication_handler()
1572 qdf_nbuf_set_tid_val(nbuf, HTT_RX_DATA_MSDU_INFO_TID_INFO_GET(*(msg_word + 2))); in dp_rx_frag_indication_handler()
1573 QDF_NBUF_CB_RX_PEER_ID(nbuf) = peer_id; in dp_rx_frag_indication_handler()
1574 QDF_NBUF_CB_RX_VDEV_ID(nbuf) = vdev_id; in dp_rx_frag_indication_handler()
1575 QDF_NBUF_CB_RX_CTX_ID(nbuf) = rx_ctx_id; in dp_rx_frag_indication_handler()
1586 if (dp_rx_buffer_pool_refill(soc, nbuf, rx_desc->pool_id)) in dp_rx_frag_indication_handler()
1591 status = dp_rx_defrag_store_fragment_rh(soc, nbuf); in dp_rx_frag_indication_handler()