Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752628AbbBWOaA (ORCPT ); Mon, 23 Feb 2015 09:30:00 -0500 Received: from mga02.intel.com ([134.134.136.20]:54377 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbbBWO37 (ORCPT ); Mon, 23 Feb 2015 09:29:59 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,631,1418112000"; d="scan'208";a="531454634" From: "Skidmore, Donald C" To: Edward Cree CC: Hiroshi Shimamoto , "vyasevic@redhat.com" , "Kirsher, Jeffrey T" , Alexander Duyck , =?utf-8?B?QmrDuHJuIE1vcms=?= , "e1000-devel@lists.sourceforge.net" , "netdev@vger.kernel.org" , "Choi, Sy Jong" , "linux-kernel@vger.kernel.org" , David Laight , Hayato Momma Subject: RE: [PATCH v2 2/3] if_link: Add VF multicast promiscuous control Thread-Topic: [PATCH v2 2/3] if_link: Add VF multicast promiscuous control Thread-Index: AdBMqJo0/LLpsu2NTFaRZnHct8YppwArslAAAAJM5JAAlJwDgAAPlXhQ Date: Mon, 23 Feb 2015 14:29:43 +0000 Message-ID: References: <7F861DC0615E0C47A872E6F3C5FCDDBD05E38840@BPXM14GP.gisp.nec.co.jp> <54E73BE4.2040505@solarflare.com> <54EB30A1.9080309@solarflare.com> In-Reply-To: <54EB30A1.9080309@solarflare.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t1NEU64d012849 Content-Length: 2196 Lines: 34 > -----Original Message----- > From: Edward Cree [mailto:ecree@solarflare.com] > Sent: Monday, February 23, 2015 5:53 AM > To: Skidmore, Donald C > Cc: Hiroshi Shimamoto; vyasevic@redhat.com; Kirsher, Jeffrey T; Alexander > Duyck; Bjørn Mork; e1000-devel@lists.sourceforge.net; > netdev@vger.kernel.org; Choi, Sy Jong; linux-kernel@vger.kernel.org; David > Laight; Hayato Momma > Subject: Re: [PATCH v2 2/3] if_link: Add VF multicast promiscuous control > > On 20/02/15 21:05, Skidmore, Donald C wrote: > > If a vender specific interface is objectionable maybe a simpler and more > generic interface would be for the PF to be able to set a given VF into > "trusted" mode... I admit exactly what 'trusted' meant would vary from > vender to vender, but it would be a way for the driver to know it could allow > configurations such as this. Just an idea, since we seem to be getting more > requests for things such as this. > That's an even worse idea; now you have a generic interface with completely > undefined semantics. > The right way to do this, imho, is to use one of the standard interfaces for > driver-specific gubbins - e.g. sysfs, genetlink or even (whisper it) ioctls - and > put your 'VF promisc mode' setting there. That way you have a vendor- > specific interface with vendor-specified semantics. > Of those options, I'd recommend sysfs as the best fit. > 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. I do see your point, but I thought custom sysfs interfaces (not to even mention new ioctl's :) were frowned upon? Which is why I didn't even consider sysfs as an option. ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?