diff options
author | James Bottomley <JBottomley@Parallels.com> | 2013-11-09 23:19:15 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-11-09 23:19:15 -0500 |
commit | 323f6226a816f0b01514d25fba5529e0e68636c3 (patch) | |
tree | 964ca28650bc92ce0ed2ba87c1c16ba65f55ebf5 /drivers/scsi/fnic | |
parent | 6fd046f960354250de3fed411eecdb784601bbad (diff) | |
parent | 6942df7f775107b504f10de42c81971f514d718d (diff) |
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')
-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) | |||
658 | 658 | ||
659 | if (is_zero_ether_addr(new)) | 659 | if (is_zero_ether_addr(new)) |
660 | new = ctl; | 660 | new = ctl; |
661 | if (!compare_ether_addr(data, new)) | 661 | if (ether_addr_equal(data, new)) |
662 | return; | 662 | return; |
663 | FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "update_mac %pM\n", new); | 663 | FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "update_mac %pM\n", new); |
664 | if (!is_zero_ether_addr(data) && compare_ether_addr(data, ctl)) | 664 | if (!is_zero_ether_addr(data) && !ether_addr_equal(data, ctl)) |
665 | vnic_dev_del_addr(fnic->vdev, data); | 665 | vnic_dev_del_addr(fnic->vdev, data); |
666 | memcpy(data, new, ETH_ALEN); | 666 | memcpy(data, new, ETH_ALEN); |
667 | if (compare_ether_addr(new, ctl)) | 667 | if (!ether_addr_equal(new, ctl)) |
668 | vnic_dev_add_addr(fnic->vdev, new); | 668 | vnic_dev_add_addr(fnic->vdev, new); |
669 | } | 669 | } |
670 | 670 | ||