Skip to contentSkip to conversation

bnx2fc: Do not log error for netevents that need no action

PATCH In review [email protected] 3 participants 3 messages Jun 6, 2014 – Jun 12, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bnx2fc: Do not log error for netevents that need no action

From: Shirish Pargaonkar <[email protected]>

Do not log error for netevents that need no action such as NETDEV_REGISTER 0x0005, NETDEV_CHANGEADDR, and NETDEV_CHANGENAME. It results in logging error messages such as these

[   35.315872] bnx2fc: Unknown netevent 5
[   35.315935] bnx2fc: Unknown netevent 8
[   35.353866] bnx2fc: Unknown netevent 10

and generating bug reports.
Remove logging this message as an ERROR instead of turning them into either DEBUG or INFO level messages.

---
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 1 -
 1 file changed, 1 deletion(-)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +0 -1
index 1d41f4b..c7388a8 100644
@@ -856,7 +856,6 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event,
 		return;
 
 	default:
-		printk(KERN_ERR PFX "Unknown netevent %ld", event);
 		return;
 	}
 
Signature · 1 line
1.8.3.2
Acked-by on v1 1/1
#1 lore raw
Quoted 26 lines · On Fri, 2014-06-06 at 13:05 -0500, [email protected] wrote:

From: Shirish Pargaonkar <[email protected]>

Do not log error for netevents that need no action such as NETDEV_REGISTER 0x0005, NETDEV_CHANGEADDR, and NETDEV_CHANGENAME. It results in logging error messages such as these

[   35.315872] bnx2fc: Unknown netevent 5
[   35.315935] bnx2fc: Unknown netevent 8
[   35.353866] bnx2fc: Unknown netevent 10

and generating bug reports.
Remove logging this message as an ERROR instead of turning them into either DEBUG or INFO level messages.

---
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 1 -
 1 file changed, 1 deletion(-)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +0 -0
index 1d41f4b..c7388a8 100644

drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_indicate_netevent(void *context, unsigned long event, · line 861

Quoted 7 lines
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +0 -1
@@ -856,7 +856,6 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event,
 		return;
 
 	default:
-		printk(KERN_ERR PFX "Unknown netevent %ld", event);
 		return;
 	}
 

Thanks for fixing this, Shirish. It makes sense to suppress the unwanted netevent messages.

The patch looks good to me, but we should really get the current bnx2fc maintainer from Qlogic to ACK this.

Acked-by
#2 lore raw
Quoted 40 lines · Eddie Wai
Quoted 26 lines · On Fri, 2014-06-06 at 13:05 -0500, [email protected] wrote:

From: Shirish Pargaonkar <[email protected]>

Do not log error for netevents that need no action such as NETDEV_REGISTER 0x0005, NETDEV_CHANGEADDR, and NETDEV_CHANGENAME. It results in logging error messages such as these

[   35.315872] bnx2fc: Unknown netevent 5
[   35.315935] bnx2fc: Unknown netevent 8
[   35.353866] bnx2fc: Unknown netevent 10

and generating bug reports.
Remove logging this message as an ERROR instead of turning them into either DEBUG or INFO level messages.

---
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 1 -
 1 file changed, 1 deletion(-)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +0 -0
index 1d41f4b..c7388a8 100644

drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_indicate_netevent(void *context, unsigned long event, · line 861

Quoted 7 lines
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +0 -1
@@ -856,7 +856,6 @@ static void bnx2fc_indicate_netevent(void *context, unsigned long event,
 		return;
 
 	default:
-		printk(KERN_ERR PFX "Unknown netevent %ld", event);
 		return;
 	}
 

Thanks for fixing this, Shirish. It makes sense to suppress the unwanted netevent messages.

The patch looks good to me, but we should really get the current bnx2fc maintainer from Qlogic to ACK this.

Quoted 8 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Looks fine to me as well.