diff options
author | James Bottomley <JBottomley@Parallels.com> | 2013-11-10 08:19:15 +0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-11-10 08:19:15 +0400 |
commit | 323f6226a816f0b01514d25fba5529e0e68636c3 (patch) | |
tree | 964ca28650bc92ce0ed2ba87c1c16ba65f55ebf5 /drivers/scsi/fnic/fnic_fcs.c | |
parent | 6fd046f960354250de3fed411eecdb784601bbad (diff) | |
parent | 6942df7f775107b504f10de42c81971f514d718d (diff) | |
download | linux-323f6226a816f0b01514d25fba5529e0e68636c3.tar.xz |
Merge tag 'fcoe-3.13' into for-linus
Pull Request for 3.13 for FCOE tree.
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_fcs.c')
-rw-r--r-- | drivers/scsi/fnic/fnic_fcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/fnic/fnic_fcs.c b/drivers/scsi/fnic/fnic_fcs.c index 60a1c50aa68f..1671325aec7f 100644 --- a/drivers/scsi/fnic/fnic_fcs.c +++ b/drivers/scsi/fnic/fnic_fcs.c @@ -658,13 +658,13 @@ void fnic_update_mac_locked(struct fnic *fnic, u8 *new) if (is_zero_ether_addr(new)) new = ctl; - if (!compare_ether_addr(data, new)) + if (ether_addr_equal(data, new)) return; FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "update_mac %pM\n", new); - if (!is_zero_ether_addr(data) && compare_ether_addr(data, ctl)) + if (!is_zero_ether_addr(data) && !ether_addr_equal(data, ctl)) vnic_dev_del_addr(fnic->vdev, data); memcpy(data, new, ETH_ALEN); - if (compare_ether_addr(new, ctl)) + if (!ether_addr_equal(new, ctl)) vnic_dev_add_addr(fnic->vdev, new); } |