net/qede/base: fix VF LRO tunnel configuration

Add missing LRO tunnel configuration parameters for VF over sriov channel.

Fixes: ec94dbc573 ("qede: add base driver")
Cc: stable@dpdk.org

Signed-off-by: Harish Patil <harish.patil@cavium.com>
This commit is contained in:
Harish Patil 2018-01-27 13:15:25 -08:00 committed by Ferruh Yigit
parent 4870a8cdd9
commit 92bed231a0
2 changed files with 8 additions and 0 deletions

View File

@ -1385,6 +1385,12 @@ ecore_vf_pf_vport_update(struct ecore_hwfn *p_hwfn,
if (sge_tpa_params->tpa_gro_consistent_flg)
p_sge_tpa_tlv->sge_tpa_flags |=
VFPF_TPA_GRO_CONSIST_FLAG;
if (sge_tpa_params->tpa_ipv4_tunn_en_flg)
p_sge_tpa_tlv->sge_tpa_flags |=
VFPF_TPA_TUNN_IPV4_EN_FLAG;
if (sge_tpa_params->tpa_ipv6_tunn_en_flg)
p_sge_tpa_tlv->sge_tpa_flags |=
VFPF_TPA_TUNN_IPV6_EN_FLAG;
p_sge_tpa_tlv->tpa_max_aggs_num =
sge_tpa_params->tpa_max_aggs_num;

View File

@ -424,6 +424,8 @@ struct vfpf_vport_update_sge_tpa_tlv {
#define VFPF_TPA_PKT_SPLIT_FLAG (1 << 2)
#define VFPF_TPA_HDR_DATA_SPLIT_FLAG (1 << 3)
#define VFPF_TPA_GRO_CONSIST_FLAG (1 << 4)
#define VFPF_TPA_TUNN_IPV4_EN_FLAG (1 << 5)
#define VFPF_TPA_TUNN_IPV6_EN_FLAG (1 << 6)
u8 update_sge_tpa_flags;
#define VFPF_UPDATE_SGE_DEPRECATED_FLAG (1 << 0)