Choice of private ioctl approach

Andrew Rybchenko arybchenko at solarflare.com
Mon Sep 29 12:36:53 UTC 2014


Hello,

we need to add private ioctl to the driver sfxge(4) to make FW update,
do internal diagnostics commands etc.
We see at least two approaches in other drivers:
  1. SIOCGPRIVATE_0/ SIOCGPRIVATE_1 on net device
  2. dedicated char device with its own ioctl's

Is there any recommendations on which way is preferred?

Thanks,
Andrew.
The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error, please notify the sender immediately and delete the message. Unless you are an addressee (or authorized to receive for an addressee), you may not use, copy or disclose to anyone this message or any information contained in this message. The unauthorized use, disclosure, copying or alteration of this message is strictly prohibited.


More information about the freebsd-net mailing list