All of lore.kernel.org
 help / color / mirror / Atom feed
* bond procfs hw addr prints
@ 2017-03-13 23:45 Jarod Wilson
  2017-03-14  0:28 ` Jay Vosburgh
  0 siblings, 1 reply; 5+ messages in thread
From: Jarod Wilson @ 2017-03-13 23:45 UTC (permalink / raw)
  To: netdev; +Cc: Jay Vosburgh

I've got a bug report for someone using a Intel OPA devices in a bond, 
and it appears these devices have a hardware address length of 20, 
opposed to the typical 6 on ethernet. When they dump 
/proc/net/bonding/bondX, it only prints the first 6 of the address, per 
%pM and mac_address_string(), while sysfs for the interface does print 
the right thing, since it uses sysfs_print_mac(), which takes a length 
argument.

So the question is... What's the best route to take here? Expand %pM to 
support variable length hardware addresses? Use sysfs_* in procfs? 
Reinvent the wheel? Nothing I've tinkered with just yet feels very 
clean, on top of not actually working yet. :)

-- 
Jarod Wilson
jarod@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-30 17:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 23:45 bond procfs hw addr prints Jarod Wilson
2017-03-14  0:28 ` Jay Vosburgh
2017-03-14  2:06   ` Jarod Wilson
2017-03-14  3:26     ` Jarod Wilson
2017-03-30 17:57       ` Jarod Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.