RDMA/nes: Use print_mac() to format ethernet addresses for printing
authorRoland Dreier <rolandd@cisco.com>
Wed, 23 Apr 2008 18:52:18 +0000 (11:52 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 23 Apr 2008 18:52:18 +0000 (11:52 -0700)
commit2bd01c5d2ed04838d50548cb7b955505a20ac0bd
tree1e9821dd9178f0a48e54c7aa0781db3b34e7efc4
parent807501475fce0ebe68baedf87f202c3e4ee0d12c
RDMA/nes: Use print_mac() to format ethernet addresses for printing

Removing open-coded MAC formats shrinks the source and the generated
code too, eg on x86-64:

add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-103 (-103)
function                                     old     new   delta
make_cm_node                                 932     912     -20
nes_netdev_set_mac_address                   427     406     -21
nes_netdev_set_multicast_list               1148    1124     -24
nes_probe                                   2349    2311     -38

Acked-by: Glenn Streiff <gstreiff@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes.c
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_nic.c