diff options
author | Roopa Prabhu <roprabhu@cisco.com> | 2010-08-10 18:54:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-17 02:32:56 -0700 |
commit | 294dab25e7068f9df80af53aceed332f9621c970 (patch) | |
tree | c43af909c0a4992f6f2050a911cbc913c81631e1 /drivers/net/enic/enic_main.c | |
parent | 559764d1996e6ae769feb07918687b0806f2d975 (diff) |
enic: Add set mac address
This patch implements the ndo_set_mac_address netdev operation for an enic device
Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/enic_main.c')
-rw-r--r-- | drivers/net/enic/enic_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 9aab85366d2..6f6c5dc3619 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -911,7 +911,9 @@ static int enic_set_mac_address_dynamic(struct net_device *netdev, void *p) static int enic_set_mac_address(struct net_device *netdev, void *p) { - return -EOPNOTSUPP; + struct sockaddr *saddr = p; + + return enic_set_mac_addr(netdev, (char *)saddr->sa_data); } static int enic_dev_packet_filter(struct enic *enic, int directed, |