From owner-freebsd-net@FreeBSD.ORG Mon Sep 29 12:36:53 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1EACB32D for ; Mon, 29 Sep 2014 12:36:53 +0000 (UTC) Received: from nbfkord-smmo02.seg.att.com (nbfkord-smmo02.seg.att.com [209.65.160.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C61DB2B1 for ; Mon, 29 Sep 2014 12:36:52 +0000 (UTC) Received: from unknown [12.187.104.25] (EHLO nbfkord-smmo02.seg.att.com) by nbfkord-smmo02.seg.att.com(mxl_mta-7.2.2-0) with ESMTP id 46259245.2b624c833940.1188909.00-2465.3027646.nbfkord-smmo02.seg.att.com (envelope-from ); Mon, 29 Sep 2014 12:36:52 +0000 (UTC) X-MXL-Hash: 542952643f89faa4-26d75f514698fa4e57b2a6acbd80760152949321 Received: from unknown [12.187.104.25] by nbfkord-smmo02.seg.att.com(mxl_mta-7.2.2-0) with SMTP id d5259245.0.1188834.00-2347.3027579.nbfkord-smmo02.seg.att.com (envelope-from ); Mon, 29 Sep 2014 12:36:51 +0000 (UTC) X-MXL-Hash: 54295263367d3c04-73a760c4de14c9771702f297348aac398bf759c4 Received: from [192.168.38.17] (84.52.89.52) by webmail.SolarFlare.com (10.20.40.31) with Microsoft SMTP Server (TLS) id 14.3.158.1; Mon, 29 Sep 2014 05:35:48 -0700 Message-ID: <54295246.6010502@solarflare.com> Date: Mon, 29 Sep 2014 16:36:22 +0400 From: Andrew Rybchenko User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Subject: Choice of private ioctl approach Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [84.52.89.52] X-TM-AS-Product-Ver: SMEX-10.0.0.1412-7.000.1014-20982.005 X-TM-AS-Result: No--5.561900-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-AnalysisOut: [v=2.0 cv=Y8NPRGiN c=1 sm=1 a=MkjXnYnS3dyNWGSWLXxFFQ==:17 a] X-AnalysisOut: [=Ozv50jBIw7UA:10 a=4oxowH2qkH0A:10 a=RB3BGLmKESwA:10 a=BLc] X-AnalysisOut: [eEmwcHowA:10 a=8nJEP1OIZ-IA:10 a=zRKbQ67AAAAA:8 a=qg_zykTt] X-AnalysisOut: [5_OaQZwxDF0A:9 a=wPNLvfGTeEIA:10] X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2014051901)] X-MAIL-FROM: X-SOURCE-IP: [12.187.104.25] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2014 12:36:53 -0000 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 f= or the addressee(s) only. If you have received this message in error, pleas= e notify the sender immediately and delete the message. Unless you are an a= ddressee (or authorized to receive for an addressee), you may not use, copy= or disclose to anyone this message or any information contained in this me= ssage. The unauthorized use, disclosure, copying or alteration of this mess= age is strictly prohibited.