[PATCH] net/hinic: fix Tx mbuf length problem

Ferruh Yigit ferruh.yigit at intel.com
Tue Mar 8 12:16:37 CET 2022


On 3/7/2022 4:06 PM, Stephen Hemminger wrote:
> On Mon,  7 Mar 2022 22:12:20 +0800
> Junjie Lin <277600718 at qq.com> wrote:
> 
>> From: Junjie Lin <linjunjie6 at huawei.com>
>>
>> The Tx mbuf needs to be ignored if the pkt_len member is zero.
>>
>> Fixes: 54faba2295bd ("net/hinic:adds Tx queue xstats members")
>> Cc: stable at dpdk.org
>>
>> Signed-off-by: Junjie Lin <linjunjie6 at huawei.com>
> 
> Not all drivers do this. It looks like you have a buggy application
> if it tries to send 0 length packets.

Agree, not sure if invalid packet check should be done in driver level.

Junjie, in which use case you are observing this problem?
Or in the past, I remember some PMD FW was crashing for similar
case, and check was added to protect device, do you have similar
problem?


More information about the dev mailing list