Commit 9d120163 authored by Yanling Song's avatar Yanling Song Committed by Zheng Zengkai
Browse files

net:spnic:Clear the flag of CSUM and TSO when VXLAN is not supported

Ramaxel inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4J0GH


CVE: NA

----------------------------------------

When the firmware does not support VXLAN offload,
 clear the flag of CSUM and TS0.

Signed-off-by: default avatarYanling Song <songyl@ramaxel.com>
Reviewed-by: default avatarXu <Yun&lt;xuyun@ramaxel.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 0229f417
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -235,9 +235,12 @@ static void netdev_feature_init(struct net_device *netdev)

	netdev->priv_flags |= IFF_UNICAST_FLT;

	netdev->hw_enc_features |= dft_fts | cso_fts;
	netdev->hw_enc_features |= dft_fts;
	if (SPNIC_SUPPORT_VXLAN_OFFLOAD(nic_dev->hwdev)) {
		netdev->hw_enc_features |= cso_fts;
		netdev->hw_enc_features |= tso_fts | NETIF_F_TSO_ECN;
	}
}

static void init_intr_coal_param(struct spnic_nic_dev *nic_dev)
{