]> git.droids-corp.org - dpdk.git/commit
net/i40e: fix max frame size config at port level
authorWenxuan Wu <wenxuanx.wu@intel.com>
Wed, 18 May 2022 04:59:14 +0000 (04:59 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 24 May 2022 02:53:37 +0000 (04:53 +0200)
commit2184f7cdeeaa7eb814e102fd01773db204ccd3bf
treecac4ad7f86d8965a268fcdbdfbe88e99e1e840f5
parent676d986b4b86ac6441b99cc1c89126640bd7e187
net/i40e: fix max frame size config at port level

Previously, max frame size can only be set when link is up, and the wait
time is 1 sec. Startup time of 10G_BASET longer than 1s would result in
failure.

Actually, max frame size of media type I40E_MEDIA_TYPE_BASET can be set
regardless of link status.

This patch omitted the link status check of 10G_MEDIA_TYPE_BASET.

Fixes: a4ba77367923 ("net/i40e: enable maximum frame size at port level")
Cc: stable@dpdk.org
Signed-off-by: Wenxuan Wu <wenxuanx.wu@intel.com>
Acked-by: Yuying Zhang <yuying.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c