diff options
author | Ajit Khaparde <ajitk@serverengines.com> | 2010-07-23 01:49:04 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-23 12:40:52 -0700 |
commit | 9cd9000bdee9131ffd2ce92ca6ef9c86467edd25 (patch) | |
tree | c021e89e872654bc481e52fee9314d3f08b1e548 /drivers/net/benet/be.h | |
parent | 37773e8b2da813045d79b38e973cb07b5df788dd (diff) | |
download | linux-stable-9cd9000bdee9131ffd2ce92ca6ef9c86467edd25.tar.gz linux-stable-9cd9000bdee9131ffd2ce92ca6ef9c86467edd25.tar.bz2 linux-stable-9cd9000bdee9131ffd2ce92ca6ef9c86467edd25.zip |
be2net: change to call pmac_del only if necessary
If a mac address has not been configured for a VF,
there is no need to call be_cmd_pmac_del.
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r-- | drivers/net/benet/be.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index f17428caecf1..c730bd64628a 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h @@ -221,6 +221,7 @@ struct be_rx_obj { }; #define BE_NUM_MSIX_VECTORS 2 /* 1 each for Tx and Rx */ +#define BE_INVALID_PMAC_ID 0xffffffff struct be_adapter { struct pci_dev *pdev; struct net_device *netdev; |