net/hinic: fix outer L3 length parse
authorXiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Sat, 31 Oct 2020 03:38:35 +0000 (11:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:07 +0000 (23:35 +0100)
commitd8d677baffb641d8cdd7e62e6b183c0394b1bcaa
treebb85720a199e172dbab4c9cb2f730be31850d861
parent35ce677cfada4e267221ddc53f969cd524c933b6
net/hinic: fix outer L3 length parse

This patch fixes outer_l3_len parse error when
PKT_TX_OUTER_IP_CKSUM is not set, which does not affect
checksum function, just be consistent with mbuf meta
information description.

The outer_l3_len is calculated wrong because 'vlan_hdr' is calculated
wrong, 'vlan_hdr' fixed and code refactored.

Fixes: 8c8b61234ffd ("net/hinic: refactor checksum functions")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
drivers/net/hinic/hinic_pmd_tx.c