From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nbfkord-smmo04.seg.att.com (nbfkord-smmo04.seg.att.com [209.65.160.86]) by dpdk.org (Postfix) with ESMTP id BA4A3590B for ; Fri, 25 Nov 2016 16:06:11 +0100 (CET) Received: from unknown [193.34.186.16] (EHLO webmail.solarflare.com) by nbfkord-smmo04.seg.att.com(mxl_mta-7.2.4-7) with ESMTP id 36358385.2b07b4005940.240848.00-2464.252495.nbfkord-smmo04.seg.att.com (envelope-from ); Fri, 25 Nov 2016 15:06:11 +0000 (UTC) X-MXL-Hash: 58385363003debcc-dcca40a5f033df880f62b13397ed0ee62a473b39 Received: from unknown [193.34.186.16] (EHLO webmail.solarflare.com) by nbfkord-smmo04.seg.att.com(mxl_mta-7.2.4-7) over TLS secured channel with ESMTP id 06358385.0.240841.00-2391.252481.nbfkord-smmo04.seg.att.com (envelope-from ); Fri, 25 Nov 2016 15:06:10 +0000 (UTC) X-MXL-Hash: 583853622d525ef9-b211d306c6b3adce8bc76e7cd5d257cc63f44709 Received: from [192.168.38.17] (84.52.89.52) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Fri, 25 Nov 2016 15:06:03 +0000 To: Ferruh Yigit , References: <1479740470-6723-1-git-send-email-arybchenko@solarflare.com> <1479740470-6723-31-git-send-email-arybchenko@solarflare.com> <18cbe35d-ee10-961b-f6a9-abfb0232c974@intel.com> <0cc9d168-a15f-abb7-303f-8c22132227ed@solarflare.com> <54c39a0a-0092-4f3e-bc21-e4a0bf8d36c8@intel.com> CC: Artem Andreev From: Andrew Rybchenko Message-ID: Date: Fri, 25 Nov 2016 18:05:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <54c39a0a-0092-4f3e-bc21-e4a0bf8d36c8@intel.com> X-Originating-IP: [84.52.89.52] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-22720.003 X-TM-AS-Result: No--16.920100-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-AnalysisOut: [v=2.1 cv=K6YkaniI c=1 sm=1 tr=0 a=8P+NB+fYZDP74ap4g4d9Kw==] X-AnalysisOut: [:17 a=RB3BGLmKESwA:10 a=L24OOQBejmoA:10 a=pK7X0mNQAAAA:8 a] X-AnalysisOut: [=zRKbQ67AAAAA:8 a=p5EpqZm5C58rJcbX2RkA:9 a=pILNOxqGKmIA:10] X-AnalysisOut: [ a=QyXUC8HyAAAA:8 a=vSsSWgOcl5WVvKlYIwYA:9 a=B6cGGCe69uLQr] X-AnalysisOut: [UIt:21 a=_W_S_7VecoQA:10 a=5HA-qpC1VU4iIGLgRoNS:22 a=PA03W] X-AnalysisOut: [X8tBzeizutn5_OT:22 a=avl4LiGQNoF5OB0DmCJ7:22] X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [193.34.186.16] Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH 30/56] net/sfc: include libefx in build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 15:06:12 -0000 On 11/25/2016 01:24 PM, Ferruh Yigit wrote: > On 11/24/2016 3:44 PM, Andrew Rybchenko wrote: >> See one question below. >> >> On 11/23/2016 06:26 PM, Ferruh Yigit wrote: >>> On 11/21/2016 3:00 PM, Andrew Rybchenko wrote: >>>> From: Artem Andreev >>>> >>>> Implement efsys.h for the PMD. >>>> >>>> Reviewed-by: Andy Moreton >>>> Signed-off-by: Artem Andreev >>>> Signed-off-by: Andrew Rybchenko >>>> --- >>>> drivers/net/sfc/efx/Makefile | 54 +++ >>>> drivers/net/sfc/efx/efsys.h | 767 +++++++++++++++++++++++++++++++++++++++++++ >>>> 2 files changed, 821 insertions(+) >>>> create mode 100644 drivers/net/sfc/efx/efsys.h <...> >>>> diff --git a/drivers/net/sfc/efx/efsys.h b/drivers/net/sfc/efx/efsys.h >>>> new file mode 100644 >>>> index 0000000..2eef996 >>>> --- /dev/null >>>> +++ b/drivers/net/sfc/efx/efsys.h >>>> @@ -0,0 +1,767 @@ >>> <...> >>> >>> I guess below is hardcoded compile time configuration for libefx, do you >>> think does it make sense to document this default configuration? >> Yes, it is libefx configuration and more options will be enabled when >> corresponding >> functionality is supported in the PMD. >> I'm sorry, but I don't understand what would you like to see in the >> documentation. >> Could you clarify, please? > This is mostly a question, following defines how libefx behaves, and a > little hard to find, do you think does it make sense to document these > in nic documentation, guides/nics/sfc_efx.rst, to highlight default > configuration. > > Like by default filtering capabilities and SFN7xxx family support > enabled but 5xxx/6xxx family support disabled... These can be listed in > a bullet listed way in two groups (default enabled / default disabled) ? I think that the information about dependencies is not very useful in the user guide documentation. For almost all options is not sufficient just to enable it here. Support in the PMD is required to bind libefx to corresponding external interfaces. I think it is a good idea to document here why some options are enabled and why SFN5xxx/SFN6xxx (Siena) support is disabled. Will do in v2. >>>> + >>>> +#define EFSYS_OPT_NAMES 0 >>>> + >>>> +#define EFSYS_OPT_SIENA 0 >>>> +#define EFSYS_OPT_HUNTINGTON 1 >>>> +#define EFSYS_OPT_MEDFORD 1 >>>> +#ifdef RTE_LIBRTE_SFC_EFX_DEBUG >>>> +#define EFSYS_OPT_CHECK_REG 1 >>>> +#else >>>> +#define EFSYS_OPT_CHECK_REG 0 >>>> +#endif >>>> + >>>> +#define EFSYS_OPT_MCDI 1 >>>> +#define EFSYS_OPT_MCDI_LOGGING 0 >>>> +#define EFSYS_OPT_MCDI_PROXY_AUTH 0 >>>> + >>>> +#define EFSYS_OPT_MAC_STATS 0 >>>> + >>>> +#define EFSYS_OPT_LOOPBACK 0 >>>> + >>>> +#define EFSYS_OPT_MON_MCDI 0 >>>> +#define EFSYS_OPT_MON_STATS 0 >>>> + >>>> +#define EFSYS_OPT_PHY_STATS 0 >>>> +#define EFSYS_OPT_BIST 0 >>>> +#define EFSYS_OPT_PHY_LED_CONTROL 0 >>>> +#define EFSYS_OPT_PHY_FLAGS 0 >>>> + >>>> +#define EFSYS_OPT_VPD 0 >>>> +#define EFSYS_OPT_NVRAM 0 >>>> +#define EFSYS_OPT_BOOTCFG 0 >>>> + >>>> +#define EFSYS_OPT_DIAG 0 >>>> +#define EFSYS_OPT_RX_SCALE 0 >>>> +#define EFSYS_OPT_QSTATS 0 >>>> +#define EFSYS_OPT_FILTER 1 >>>> +#define EFSYS_OPT_RX_SCATTER 0 >>>> + >>>> +#define EFSYS_OPT_EV_PREFETCH 0 >>>> + >>>> +#define EFSYS_OPT_DECODE_INTR_FATAL 0 >>>> + >>>> +#define EFSYS_OPT_LICENSING 0 >>>> + >>>> +#define EFSYS_OPT_ALLOW_UNCONFIGURED_NIC 0 >>>> + >>>> +#define EFSYS_OPT_RX_PACKED_STREAM 0 >>> <...>