net/bnxt: fix VLAN/VXLAN encapsulation header size
authorXiaoyu Min <jackmin@nvidia.com>
Mon, 16 Nov 2020 07:55:16 +0000 (15:55 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 22 Nov 2020 16:07:25 +0000 (17:07 +0100)
commit0d23f95d70910cca2204bbf78ecc3c50f1aa5a7a
tree74704f578507b0242002a8dfe09d72459bf46e63
parenta165ee1ec1750ba9e21ad8f8d22a48722449390f
net/bnxt: fix VLAN/VXLAN encapsulation header size

The rte_flow_item_eth and rte_flow_item_vlan items are refined.
The structs do not exactly represent the packet bits captured on the
wire anymore so should only copy real header instead of the whole struct.

Replace the rte_flow_item_* with the existing corresponding rte_*_hdr.

Fixes: 09315fc83861 ("ethdev: add VLAN attributes to ethernet and VLAN items")

Signed-off-by: Xiaoyu Min <jackmin@nvidia.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_ulp/ulp_rte_parser.c