ixgbe: clear mac address data block in DCB mode
Subsystems (2)
PATCH 1/2 ixgbe: clear mac address data block in DCB mode
From: Lucy Liu <[email protected]>
This change clears the address data block memory space, which is needed for the 82598 which does not have a SAN MAC.
Signed-off-by Lucy Liu <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
drivers/net/ixgbe/ixgbe_dcb_nl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/ixgbe/ixgbe_dcb_nl.c +2 -0
@@ -175,6 +175,8 @@ static void ixgbe_dcbnl_get_perm_hw_addr(struct net_device *netdev,struct ixgbe_adapter *adapter =netdev_priv (netdev);int i, j; +memset (perm_addr,0xff ,MAX_ADDR_LEN ); +for (i =0 ; i < netdev->addr_len; i++) perm_addr[i] = adapter->hw.mac.perm_addr[i];
PATCH 2/2 ixgbe: Remove DPRINTK messages in DCB mode
From: Lucy Liu <[email protected]>
Remove debug DPRINTK in DCB mode netlink interface.
Signed-off-by Lucy Liu <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
drivers/net/ixgbe/ixgbe_dcb_nl.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/net/ixgbe/ixgbe_dcb_nl.c +0 -4
@@ -106,8 +106,6 @@ static u8 ixgbe_dcbnl_get_state(struct net_device *netdev) {struct ixgbe_adapter *adapter =netdev_priv (netdev); -DPRINTK (DRV ,INFO ,"Get DCB Admin Mode.\n" ); -return !!(adapter->flags &IXGBE_FLAG_DCB_ENABLED ); }
@@ -116,8 +114,6 @@ static u8 ixgbe_dcbnl_set_state(struct net_device *netdev, u8 state)u8 err =0 ;struct ixgbe_adapter *adapter =netdev_priv (netdev); -DPRINTK (DRV ,INFO ,"Set DCB Admin Mode.\n" ); -if (state >0 ) {/* Turn on DCB */ if (adapter->flags &IXGBE_FLAG_DCB_ENABLED )
Re: [net-2.6 PATCH 2/2] ixgbe: Remove DPRINTK messages in DCB mode
From: Jeff Kirsher <[email protected]>
Date: Thu, 16 Jul 2009 16:43:31 -0700
Quoted 5 lines
Remove debug DPRINTK in DCB mode netlink interface.
Signed-off-by Lucy Liu <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.
From: Jeff Kirsher <[email protected]>
Date: Thu, 16 Jul 2009 16:43:10 -0700
Quoted 6 lines
This change clears the address data block memory space, which is needed for the 82598 which does not have a SAN MAC.
Signed-off-by Lucy Liu <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.