qcacmn: Ensure nbuf count is less than no of segs

While preparing raw packets for transmission, the count
of nbuf belonging to one mpdu must be less than the
number of segments.This makes sure the frags array inside
seg_info does not go out of bounds.

Change-Id: I7fffba7f64da274aa73c558cfc63d90f4419a04d
此提交包含在:
Debasis Das
2020-08-31 14:58:01 +05:30
提交者 snandini
父節點 a24f3db18e
當前提交 c1184913b7
共有 4 個檔案被更改,包括 16 行新增3 行删除

查看文件

@@ -6200,6 +6200,8 @@ dp_print_pdev_tx_stats(struct dp_pdev *pdev)
pdev->stats.tx_i.raw.dma_map_error);
DP_PRINT_STATS(" RAW pkt type[!data] error = %d",
pdev->stats.tx_i.raw.invalid_raw_pkt_datatype);
DP_PRINT_STATS(" Frags count overflow error = %d",
pdev->stats.tx_i.raw.num_frags_overflow_err);
DP_PRINT_STATS("Reinjected:");
DP_PRINT_STATS(" Packets = %d",
pdev->stats.tx_i.reinject_pkts.num);