]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: show full hw address in sysfs for slave entries
authorKonstantin Khorenko <khorenko@virtuozzo.com>
Thu, 28 Mar 2019 10:29:21 +0000 (13:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 20:32:39 +0000 (13:32 -0700)
commit4973b0e0ba9f84550480f9a48c7c17ee231c7f7c
tree79970f02b56d85ceab6802d5076b6806203182fc
parente1ea633cc9456d8efdced0c518408597ae25b22e
bonding: show full hw address in sysfs for slave entries

Bond expects ethernet hwaddr for its slave, but it can be longer than 6
bytes - infiniband interface for example.

 # cat /sys/devices/<skipped>/net/ib0/address
 80:00:02:08:fe:80:00:00:00:00:00:00:7c:fe:90:03:00:be:5d:e1

 # cat /sys/devices/<skipped>/net/ib0/bonding_slave/perm_hwaddr
 80:00:02:08:fe:80

So print full hwaddr in sysfs "bonding_slave/perm_hwaddr" as well.

Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs_slave.c