qcacmn: Handle frag based ops based on rx_Desc_pool flag

Rx desc pool have a flag to identify whether frag or nbuf
operation needs to be performed for alloc, map, prep and
free buffer for monitor dest buffer.

This flag will be set only for mon destination desc pool,
if RX_MON_MEM_FRAG feature is enabled.
In all other case, It will be set to Zero and default nbuf
operation will be taken.
This flag get initialized at the time of pdev rx_desc_pool
initialization and gets reset while pdev deinit.

Mon destination buffer will have support for frag if
RX_MON_MEM_FRAG flag is set.

Change-Id: I67c6c823ee4f114035b884c024a1a9054a40665b
CRs-Fixed: 2741757
这个提交包含在:
Ankit Kumar
2020-07-25 15:08:45 +05:30
提交者 snandini
父节点 37a135ca9e
当前提交 526bbe81de
修改 8 个文件,包含 381 行新增69 行删除

查看文件

@@ -6282,6 +6282,8 @@ dp_print_pdev_rx_stats(struct dp_pdev *pdev)
pdev->stats.err.ip_csum_err);
DP_PRINT_STATS(" TCP/UDP checksum error = %u",
pdev->stats.err.tcp_udp_csum_err);
DP_PRINT_STATS(" Failed frag alloc = %u",
pdev->stats.replenish.frag_alloc_fail);
/* Get bar_recv_cnt */
dp_aggregate_pdev_ctrl_frames_stats(pdev);