diff options
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/vnic_dev.c')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/vnic_dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/cisco/enic/vnic_dev.c b/drivers/net/ethernet/cisco/enic/vnic_dev.c index 298ad6f865b..79cb3405beb 100644 --- a/drivers/net/ethernet/cisco/enic/vnic_dev.c +++ b/drivers/net/ethernet/cisco/enic/vnic_dev.c | |||
@@ -613,7 +613,7 @@ int vnic_dev_hang_notify(struct vnic_dev *vdev) | |||
613 | return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); | 613 | return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); |
614 | } | 614 | } |
615 | 615 | ||
616 | int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) | 616 | int vnic_dev_get_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) |
617 | { | 617 | { |
618 | u64 a0, a1; | 618 | u64 a0, a1; |
619 | int wait = 1000; | 619 | int wait = 1000; |
@@ -622,7 +622,7 @@ int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) | |||
622 | for (i = 0; i < ETH_ALEN; i++) | 622 | for (i = 0; i < ETH_ALEN; i++) |
623 | mac_addr[i] = 0; | 623 | mac_addr[i] = 0; |
624 | 624 | ||
625 | err = vnic_dev_cmd(vdev, CMD_MAC_ADDR, &a0, &a1, wait); | 625 | err = vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); |
626 | if (err) | 626 | if (err) |
627 | return err; | 627 | return err; |
628 | 628 | ||
@@ -803,7 +803,7 @@ int vnic_dev_init(struct vnic_dev *vdev, int arg) | |||
803 | /* Emulate these for old CMD_INIT_v1 which | 803 | /* Emulate these for old CMD_INIT_v1 which |
804 | * didn't pass a0 so no CMD_INITF_*. | 804 | * didn't pass a0 so no CMD_INITF_*. |
805 | */ | 805 | */ |
806 | vnic_dev_cmd(vdev, CMD_MAC_ADDR, &a0, &a1, wait); | 806 | vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); |
807 | vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); | 807 | vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); |
808 | } | 808 | } |
809 | } | 809 | } |