On 4/11/2020 12:21 PM, wangyunjian wrote:
> From: Yunjian Wang <[email protected]>
> 
> When the tap_write_mbufs() function return with break, mbuf was freed
> without increasing num_packets, which could cause applications to free
> the mbuf again. And the pmd_tx_burst() function should returns the
> number of original packets it actually sent excluding tso mbufs.
> 
> Fixes: 9396ad334672 ("net/tap: fix reported number of Tx packets")
> CC: [email protected]
> 
> Signed-off-by: Yunjian Wang <[email protected]>

Reviewed-by: Ferruh Yigit <[email protected]>

Reply via email to