mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 01:36:13 +07:00
enic: bug fix: check for zero port MTU before posting warning
Nic firmware can return zero for port MTU, so check for non-zero value before checking for change in port MTU. Signed-off-by: Scott Feldman <scofeldm@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d73149f51e
commit
491598a44f
@ -362,7 +362,7 @@ static void enic_mtu_check(struct enic *enic)
|
||||
{
|
||||
u32 mtu = vnic_dev_mtu(enic->vdev);
|
||||
|
||||
if (mtu != enic->port_mtu) {
|
||||
if (mtu && mtu != enic->port_mtu) {
|
||||
if (mtu < enic->netdev->mtu)
|
||||
printk(KERN_WARNING PFX
|
||||
"%s: interface MTU (%d) set higher "
|
||||
|
Loading…
Reference in New Issue
Block a user