netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Port attributes configuration
@ 2014-07-29  9:15 Marco Varlese
  2014-07-29 13:46 ` John Fastabend
  2014-07-29 17:53 ` Cong Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Marco Varlese @ 2014-07-29  9:15 UTC (permalink / raw)
  To: netdev

I'm working on a new platform and the network interfaces will have
quite few new options (roughly 50) to configure. What I definitely
want to achieve is to use the common tools available on Linux to let
users configure the port attributes from user-space without writing a
brand new ad-hoc tool.

Considered my requirements I think I've a choice of configuring these
port attributes via:
1) ethtool: this I guess will require patches to the tool itself plus
patches to the kernel to extend the IOCTL calls performed by it;
2) sysfs: adding new files under /sys/class/net/DEVICE/ and handle the
sysfs extensions in my kernel driver;
3) netlink: I understand this seems to be the path most people prefer
but I think it will require a new tool to be written?

What would you suggest as the best approach here to have a good
solution accepted by most?


Thanks,
Marco

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

end of thread, other threads:[~2014-07-29 17:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-29  9:15 Port attributes configuration Marco Varlese
2014-07-29 13:46 ` John Fastabend
2014-07-29 17:53 ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).