aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic
diff options
context:
space:
mode:
authorScott Feldman <scofeldm@cisco.com>2009-09-03 17:02:40 +0000
committerDavid S. Miller <davem@davemloft.net>2009-09-03 20:19:24 -0700
commit491598a44f12fe8b862ab4123de1a1ffe9b86832 (patch)
tree2e985af4658cfc8a59132c0082817f94a8635438 /drivers/net/enic
parentd73149f51e165f5872bc431ae181650396145265 (diff)
downloadkernel_samsung_espresso10-491598a44f12fe8b862ab4123de1a1ffe9b86832.zip
kernel_samsung_espresso10-491598a44f12fe8b862ab4123de1a1ffe9b86832.tar.gz
kernel_samsung_espresso10-491598a44f12fe8b862ab4123de1a1ffe9b86832.tar.bz2
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>
Diffstat (limited to 'drivers/net/enic')
-rw-r--r--drivers/net/enic/enic_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index e0bf224..f800218 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -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 "