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
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ static void enic_mtu_check(struct enic *enic)
|
||||||
{
|
{
|
||||||
u32 mtu = vnic_dev_mtu(enic->vdev);
|
u32 mtu = vnic_dev_mtu(enic->vdev);
|
||||||
|
|
||||||
if (mtu != enic->port_mtu) {
|
if (mtu && mtu != enic->port_mtu) {
|
||||||
if (mtu < enic->netdev->mtu)
|
if (mtu < enic->netdev->mtu)
|
||||||
printk(KERN_WARNING PFX
|
printk(KERN_WARNING PFX
|
||||||
"%s: interface MTU (%d) set higher "
|
"%s: interface MTU (%d) set higher "
|
||||||
|
|
Loading…
Reference in a new issue