net/hns3: fix sending packets less than 60 bytes
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Fri, 22 Nov 2019 12:06:21 +0000 (20:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commitde620754a10974f810b878f637b1ed9f77ebd7d8
tree65048e4755e39b908104149f320deb2277811691
parent9e4dc675641421bbdc07095d59916e3348fdea13
net/hns3: fix sending packets less than 60 bytes

Ethernet minimum packet length is 64 bytes. If upper application
sends packets with less than 60 bytes in length(no CRC), driver
adds padding processing to avoid failure.

Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_rxtx.c