aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cisco
diff options
context:
space:
mode:
authorRoopa Prabhu <roprabhu@cisco.com>2012-02-19 19:11:48 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-20 00:51:40 -0500
commitb13423ee0cba4dc23ca21e61ca45f482d6713509 (patch)
tree6c6eb3f351970eb7479aabe36ac08d459e2d534c /drivers/net/ethernet/cisco
parent5277f7a6c2f322f11e8deed48530296d70bc5d5f (diff)
enic: rename CMD_MAC_ADDR to CMD_GET_MAC_ADDR
firmware devcmd CMD_MAC_ADDR gets the mac address of a vnic from adapter. This patch renames it to CMD_GET_MAC_ADDR more appropriately. Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: Christian Benvenuti <benve@cisco.com> Signed-off-by: Sujith Sankar <ssujith@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco')
-rw-r--r--drivers/net/ethernet/cisco/enic/enic_res.c2
-rw-r--r--drivers/net/ethernet/cisco/enic/vnic_dev.c6
-rw-r--r--drivers/net/ethernet/cisco/enic/vnic_dev.h2
-rw-r--r--drivers/net/ethernet/cisco/enic/vnic_devcmd.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic_res.c b/drivers/net/ethernet/cisco/enic/enic_res.c
index 4a35367de79..31d658880c3 100644
--- a/drivers/net/ethernet/cisco/enic/enic_res.c
+++ b/drivers/net/ethernet/cisco/enic/enic_res.c
@@ -44,7 +44,7 @@ int enic_get_vnic_config(struct enic *enic)
44 struct vnic_enet_config *c = &enic->config; 44 struct vnic_enet_config *c = &enic->config;
45 int err; 45 int err;
46 46
47 err = vnic_dev_mac_addr(enic->vdev, enic->mac_addr); 47 err = vnic_dev_get_mac_addr(enic->vdev, enic->mac_addr);
48 if (err) { 48 if (err) {
49 dev_err(enic_get_dev(enic), 49 dev_err(enic_get_dev(enic),
50 "Error getting MAC addr, %d\n", err); 50 "Error getting MAC addr, %d\n", err);
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
616int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) 616int 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 }
diff --git a/drivers/net/ethernet/cisco/enic/vnic_dev.h b/drivers/net/ethernet/cisco/enic/vnic_dev.h
index 6a138b625d1..e476c737f61 100644
--- a/drivers/net/ethernet/cisco/enic/vnic_dev.h
+++ b/drivers/net/ethernet/cisco/enic/vnic_dev.h
@@ -97,7 +97,7 @@ int vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast,
97 int broadcast, int promisc, int allmulti); 97 int broadcast, int promisc, int allmulti);
98int vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr); 98int vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr);
99int vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr); 99int vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr);
100int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr); 100int vnic_dev_get_mac_addr(struct vnic_dev *vdev, u8 *mac_addr);
101int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr); 101int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr);
102int vnic_dev_notify_unset(struct vnic_dev *vdev); 102int vnic_dev_notify_unset(struct vnic_dev *vdev);
103int vnic_dev_link_status(struct vnic_dev *vdev); 103int vnic_dev_link_status(struct vnic_dev *vdev);
diff --git a/drivers/net/ethernet/cisco/enic/vnic_devcmd.h b/drivers/net/ethernet/cisco/enic/vnic_devcmd.h
index 8025e8808d6..8a58dea2fa0 100644
--- a/drivers/net/ethernet/cisco/enic/vnic_devcmd.h
+++ b/drivers/net/ethernet/cisco/enic/vnic_devcmd.h
@@ -131,7 +131,7 @@ enum vnic_devcmd_cmd {
131 CMD_HANG_NOTIFY = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 8), 131 CMD_HANG_NOTIFY = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 8),
132 132
133 /* MAC address in (u48)a0 */ 133 /* MAC address in (u48)a0 */
134 CMD_MAC_ADDR = _CMDC(_CMD_DIR_READ, 134 CMD_GET_MAC_ADDR = _CMDC(_CMD_DIR_READ,
135 _CMD_VTYPE_ENET | _CMD_VTYPE_FC, 9), 135 _CMD_VTYPE_ENET | _CMD_VTYPE_FC, 9),
136 136
137 /* add addr from (u48)a0 */ 137 /* add addr from (u48)a0 */