qcacmn: set nbuf next to NULL before calling ME convert API

ME code calls dp_tx_send_msdu_multiple API for Tx the converted
unicast packets. Set nbuf next to NULL before calling ME
convert API to avoid Tx of nbuf->next multiple times

Change-Id: Id063e227b56c494108dc23bd2fdbdc9c085ba4ab
This commit is contained in:
Chaithanya Garrepalli
2021-01-25 10:23:48 +05:30
committed by snandini
parent 7630ff783b
commit b2a9c0155b

View File

@@ -2622,6 +2622,7 @@ static inline bool dp_tx_mcast_enhance(struct dp_vdev *vdev, qdf_nbuf_t nbuf)
if (DP_FRAME_IS_MULTICAST((eh)->ether_dhost) && if (DP_FRAME_IS_MULTICAST((eh)->ether_dhost) &&
!DP_FRAME_IS_BROADCAST((eh)->ether_dhost)) { !DP_FRAME_IS_BROADCAST((eh)->ether_dhost)) {
dp_verbose_debug("Mcast frm for ME %pK", vdev); dp_verbose_debug("Mcast frm for ME %pK", vdev);
qdf_nbuf_set_next(nbuf, NULL);
DP_STATS_INC_PKT(vdev, tx_i.mcast_en.mcast_pkt, 1, DP_STATS_INC_PKT(vdev, tx_i.mcast_en.mcast_pkt, 1,
qdf_nbuf_len(nbuf)); qdf_nbuf_len(nbuf));