From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0087.outbound.protection.outlook.com [104.47.40.87]) by dpdk.org (Postfix) with ESMTP id 3CBBAF921 for ; Mon, 19 Dec 2016 16:31:31 +0100 (CET) Received: from BN3PR0301CA0030.namprd03.prod.outlook.com (10.160.180.168) by MWHPR03MB2479.namprd03.prod.outlook.com (10.169.200.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.14; Mon, 19 Dec 2016 15:31:29 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::196) by BN3PR0301CA0030.outlook.office365.com (2a01:111:e400:4000::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.14 via Frontend Transport; Mon, 19 Dec 2016 15:31:29 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.789.10 via Frontend Transport; Mon, 19 Dec 2016 15:31:28 +0000 Received: from [127.0.0.1] ([10.232.133.65]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id uBJFVMBO003210; Mon, 19 Dec 2016 08:31:26 -0700 To: Ferruh Yigit , References: <1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com> <1480875447-23680-23-git-send-email-hemant.agrawal@nxp.com> CC: , , From: Hemant Agrawal Message-ID: <3af745d0-0fb7-8508-af7a-a95897e19888@nxp.com> Date: Mon, 19 Dec 2016 21:01:21 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131266350890974015; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7916002)(39860400002)(39400400002)(39850400002)(39410400002)(39450400003)(39380400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(3190300001)(43544003)(24454002)(199003)(189002)(377454003)(626004)(69596002)(8666005)(356003)(305945005)(65956001)(33646002)(65806001)(65826007)(23746002)(31686004)(97736004)(2906002)(5001770100001)(31696002)(105606002)(106466001)(85426001)(86362001)(8676002)(4001350100001)(83506001)(230700001)(47776003)(189998001)(68736007)(81156014)(81166006)(8936002)(50466002)(77096006)(120886001)(6666003)(2950100002)(4326007)(5660300001)(104016004)(54356999)(50986999)(64126003)(7246003)(7126002)(229853002)(92566002)(38730400001)(36756003)(76176999)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2479; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD014; 1:Kne8YKmkVwtoC510bllRBsir2YcuXw/C+SY8AUBljZaJbnK/l+frAvQ4xllJQeYI6NNtvjlUlItQ+TSUuc9/zWB/1pq7n3lpGmTJ2zgdu5daY3JotkUr5miJ4VdAxDknOqN5md5zohPdrV77dig7mjbFVlQhwrz1DLUNVhJtwtbjBx2INSf8aQaBxFvkkrhDfExv2i3oSJ6KQPwZu6vK345GlpdY/8DmievVi7r8MjikLs2ht5f/rvj9UewEJ0Pi1QbZqoayGUVWbboeMyPa4lXI/EnoGd5pK6kxClkzaozfPwhZvAYW8TWq7XyTlsP7rv5Qit5trD78du+54ooiV4E+u8Cm9ORNNirbZCVCj9ij7oXQKLW8qobXgPKu0kwSBiGU3nkThLIUEAOCqkHoThURwLr6bcGLJLHAMyEDCFYTVFg2FqCNLiRkryW44VxkRWjxN8RrklLN9B/lJJn9T3Run8Wu3JbI50FlHjyPDYClDvHUmeOSSxPNbqLQPPw70i61zbysw5RhS/qmOV/LRFSiLjJxpS46E1DBE3dkTnVmhItgCW/wRMjMdfG2REDI2QBxOa3q3Ah2yGr6JnukuZXoV8wp8HujRUcMyjOkMa1/Gi54kT+2N+RbcCXqInKfIhnlUYzhilmaLr7kD6rw8+IYLSAsY6RrkFl/emmAmkg= X-MS-Office365-Filtering-Correlation-Id: f9e0d451-a92b-46e3-19e3-08d428241a46 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR03MB2479; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2479; 3:TYEMW1HWqnZbGAq+HP8z9X0AZblsVY4dLqeMZdOCJWpA7l01DXWXvrHqpyE4t59obevN1TH/dqGpPvKgbWPgzIrp40U0ijJRzntxpNvQrRkIQVoizGWC5tXWfUYyCb06AJaR7GN0i/uk6IUOwA7YymVQrpkNOzIJuWncJsIUz8dLtqvbZboIUewztjncexp5DbcYLegfQT+esnWWl6T43GNeBIZuZGYIFYIi1y4KNX62y97ala5PYAaRB5Ld8QzcHBUuCiqwp5uRSOsMGh3PSWcMljlyucbja2IQEzRCldpB4MxlfzrsRavNSWBOJNL95+b9k87BpHpN4n3VKMG61mcjkqWqxDL7gFOLEf9aCqLkYjTM9HfJTj6jxC3my7xu X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2479; 25:R8MRBeNIc6lonTCGyc2MF+sArhzia6BgMKK/XYimjEIbn3sV9NHfKlQv3Zv+NYucLGO9+tVy6iygtB/fgkZtYos+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RVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(8121501046)(5005006)(13015025)(13023025)(13024025)(13017025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123565025)(20161123563025)(20161123556025)(20161123561025); SRVR:MWHPR03MB2479; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2479; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2479; 4:MtMetggmrrfVzfJ2nlEBFusLVUkoCZTxYxzzBv11N7lHThAyBYcbuMxLN8k+cSF4kyUmpOepygh4228t5XcGnXZa7pnIdYT0WrOyCHGa+rZytBavO6goq32bac/hdqNEommeukt5oSKNGibSMS8ybsS4slwaOksST9Wy8C5mDEuqTQe0cbCMAXnkRoKwezKG3hCaV3fy3MwER1mddaNtZ5KGTYvmEv8eqq5sXvSDbTXQ9Kd2bT/ahjoDvU3fO4yd8ujHQJKcn13pJdrEMDYE0Bu391YOAbYv1nrRUj+gB7O7atT9LZgoga8GPP0SwHA4Danj3IPI2Q+EH6LMjqRCViN5iZXC69EJMjUJ78EveMTk36cLIkioIVWxpOJLTltbiZ2xnQZANDSbuUu21TQey/Hq7RYojMOM7pYpwJ/B9OzLE+KK7QVkO4BwdQXTyi5Ry3c6MIdV1CNOznp0CUtuBTDacy5OiclSPx/kEi5x49lqAIT4OmqJH6GVdPo2R9Vb7C/SbFn0QRIn0oDr8s0pIvwRyOYMVnOuQVdPVHVnzmgy/k94k94HqOw/r135QE4GFGgvv5NIMRhIjp+A4cY0v0TIfN7OukX11qDmUtzCtWpbuh7LDvEiy789TQwVfA+G+Rktfw11FHhWrNPTbrzab5QEfomtCV5QhC/ptbPxSHi+98iGvLcjJDUVePMt4P9Z82aN7PpQYvlxVwCALanFwMunJM4KRznLSy5U7nsmWUYs+E1sGJYkyX/Gtzquozab X-Forefront-PRVS: 01613DFDC8 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; MWHPR03MB2479; 23:7n16nJkS2OWFshqMZU2DzEVHoClFfPZZWzAki?= =?Windows-1252?Q?DBxJpCo4GDnfAOkfJ8DnkCefRgo37YniuobsRGXUj/Q/7uY6L25fyFrd?= =?Windows-1252?Q?Pqw4WUVNH/uOVSlPWpZnUhj5vNHkcAQ9mftAsowDYcC4UjGa+9HJ12H5?= =?Windows-1252?Q?sY+iqb/oaD31yLEVOTDX0M5oGWDCuDR86DpzcQaYgA3ZQi9cu5c9deSi?= =?Windows-1252?Q?PHZcUCMDhFrBemeq3tJSRnOCXyqClcPJrE4tDtWpBXjhAJZkdF+TCwHd?= =?Windows-1252?Q?O5+mIBE6LRKomGNMgTY/hIIGwN+FiC9LyvI+ysyORwZ5jJnKcHClZJKE?= =?Windows-1252?Q?xZ9FvNazs8ROvlJi2LDXwsj4J2CrmU3Xqm8OEUQ2gdOCkdaXM7fnoF4k?= =?Windows-1252?Q?hQZvUclR5XAS1VUkBbg11EuIJJlcPmWDBcF3oHtL0JgCBsbJmiFP6x2U?= =?Windows-1252?Q?zNthWn1xu6w/UEWv2g3TcNjCi/jBfUEh+1mw4ZectdruD0oktvecy74o?= =?Windows-1252?Q?isbwagw2/xnG8Aeyk5ITjwdvYLuzXCveeYw+UH1Mpe4btfph4HeNSWRx?= =?Windows-1252?Q?FwxQgOnMHfCHWOJEeUe4VhoDP9WcZNe/h5YrFQmicioyrWR8ckbcJL0C?= =?Windows-1252?Q?yaBZgXBBEQDXx9QBXiHXwvbuUjUWisS15QbUTPR2PPu0oQhn6mDdLE0T?= =?Windows-1252?Q?LAdEgFG/is+Yyy6fytEegU91DQC1SBVWJo2XCMX6MhkAAdVu8qtgu8vP?= =?Windows-1252?Q?oDXQUaSTrf+U3AOtWUJDSp/yqY7uJ1CBGd5UulKUVj8WQ4Y3lyPR60kd?= =?Windows-1252?Q?1Mj4wgfeefPany4kknyLHJsqAAcVQZCtY+G+s52La5zzLqnVJ5JcmWN/?= =?Windows-1252?Q?MB0sTWf/0x0b6Kndvqk4W+xvY5+U3STzHaHZ5xRxdEqfgr/++k6VBhAb?= =?Windows-1252?Q?AuMjet9Pc11MWqG3eYrzmfTUWKN8V9BGUM2RxqIdGCJYT1yi3Y8AgGYI?= =?Windows-1252?Q?nMaasbcJ7OZMLuhRPd6jNVroLj2/gMnnmyIlGFk+NGfmNcX+pYX3HFHr?= =?Windows-1252?Q?OzHPDhHwAf7vCuupnWhEEMRIr7V7pIb2dWRDXp86ZUwz3ihcWLskNHqA?= =?Windows-1252?Q?dS/QBkR2DgsYLB1q0gV+36cld2o8C2h5qRvz4FY/I4pdTeyxYqzz5H+0?= =?Windows-1252?Q?7K22yeopBACp1hc3z8BLtcKxaHM8C94B/HE4soxa45zXRKL7est8n3mm?= =?Windows-1252?Q?qT2fRVItbnfO0JmmRO/wtz9ZuuSvMTWuPSFPGNWdwgCwDuNoI3B04wlU?= =?Windows-1252?Q?4RHFZXt1NjjLWCpNh5SWb2fqj+twKvLzdWa0c9tRa+AMqMCiMxY14OUn?= =?Windows-1252?Q?dvAjXKBFkakg192cUGEJo29/mADVA2rSpsrlEyKrevrR8gOqktKEcOuK?= =?Windows-1252?Q?rWk/w7bOGKwg8Z7UnNS6IhdewsqxftUnZ9UiSPQZ9xEF/OMLhiNapKKd?= =?Windows-1252?Q?GoDlBwionI8djagyd3JIIfWTSogbrqeuCDhW6V/iEC502poEgJIp8MYa?= =?Windows-1252?Q?rITD6d4fk65hG1kuSY5cHi26jlgodlPWZVZ4jBAGKnEkcbnr8IgY6cqs?= =?Windows-1252?Q?hapc/SnJI71TOGdbq1xWdb6/ePOyt+FYGD166wiePXNfm7oyRQM15Jj5?= =?Windows-1252?Q?U5lf62SmQr7sNSBpHwRbBFqvFBclnGyCVsYSGBgazEZ0nqpUQlMkga2s?= =?Windows-1252?Q?S0HBRqTeeI9GGfne3bsWn1JUsol1SSoKNnNUGw=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2479; 6:Zo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7zVHYuSPBq7RzWav3FdxWfXBnJt6NZNNLJ8qM6LswmlcnVlr63xpQtltIyzv4HmMMFaQQ46+OGvsS2jrR6HtNHbFBOD/gMuMLc/0+bm5KBImYxEHDCGWWmmW04KlSNybvfmLHOOkb2UWAEH58fDpmLeOJiRzK3GwAkIG6Dkt8p9MxMI+W2Qsqx7++mR0u+yNH0kIZFofMrQpZ6g+d1TwdVOwWkgcabmzK/g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2016 15:31:28.8478 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2479 Subject: Re: [dpdk-dev] [PATCH 22/32] net/dpaa2: configure mac address at init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 15:31:31 -0000 On 12/7/2016 1:20 AM, Ferruh Yigit wrote: > On 12/4/2016 6:17 PM, Hemant Agrawal wrote: >> Signed-off-by: Hemant Agrawal >> --- >> drivers/net/dpaa2/base/dpaa2_hw_dpni.h | 3 +++ >> drivers/net/dpaa2/dpaa2_ethdev.c | 26 ++++++++++++++++++++++++++ >> 2 files changed, 29 insertions(+) >> >> diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.h b/drivers/net/dpaa2/base/dpaa2_hw_dpni.h >> index c109396..70d52b6 100644 >> --- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.h >> +++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.h >> @@ -63,7 +63,10 @@ struct dpaa2_dev_priv { >> void *rx_vq[MAX_RX_QUEUES]; >> void *tx_vq[MAX_TX_QUEUES]; >> >> + uint32_t options; >> uint16_t num_dist_per_tc[MAX_TCS]; >> + uint8_t max_mac_filters; >> + uint8_t max_vlan_filters; >> uint8_t num_tc; >> uint8_t flags; /*dpaa2 config flags */ >> }; >> diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c >> index 094296a..65c3384 100644 >> --- a/drivers/net/dpaa2/dpaa2_ethdev.c >> +++ b/drivers/net/dpaa2/dpaa2_ethdev.c >> @@ -64,8 +64,12 @@ >> dev_info->driver_name = drivername; >> dev_info->if_index = priv->hw_id; >> >> + dev_info->max_mac_addrs = priv->max_mac_filters; >> dev_info->max_rx_queues = (uint16_t)priv->nb_rx_queues; >> dev_info->max_tx_queues = (uint16_t)priv->nb_tx_queues; >> + dev_info->speed_capa = ETH_LINK_SPEED_1G | >> + ETH_LINK_SPEED_2_5G | >> + ETH_LINK_SPEED_10G; > > Patch does a little more than what it says, this can be added to prev > patch that introduces dpaa2_dev_info_get() > I have fixed it. >> } >> >> static int >> @@ -444,6 +448,9 @@ > > Overall this makes harder to review, there is no function name provided > int the patch, this is same for all patchset. There was a .gitattributes > patch in the mail list for this, can you please get it before sending > next revision of patches. I have tried to take care of it in v2. Please check now. >> >> priv->hw = dpni_dev; >> priv->hw_id = hw_id; >> + priv->options = attr.options; >> + priv->max_mac_filters = attr.mac_filter_entries; >> + priv->max_vlan_filters = attr.vlan_filter_entries; >> priv->flags = 0; >> >> ret = dpaa2_alloc_rx_tx_queues(eth_dev); >> @@ -452,6 +459,25 @@ >> return -ret; >> } >> >> + /* Allocate memory for storing MAC addresses */ >> + eth_dev->data->mac_addrs = rte_zmalloc("dpni", >> + ETHER_ADDR_LEN * attr.mac_filter_entries, 0); >> + if (eth_dev->data->mac_addrs == NULL) { >> + PMD_INIT_LOG(ERR, "Failed to allocate %d bytes needed to " >> + "store MAC addresses", >> + ETHER_ADDR_LEN * attr.mac_filter_entries); >> + return -ENOMEM; >> + } >> + >> + ret = dpni_get_primary_mac_addr(dpni_dev, CMD_PRI_LOW, >> + priv->token, >> + (uint8_t *)(eth_dev->data->mac_addrs[0].addr_bytes)); >> + if (ret) { >> + PMD_INIT_LOG(ERR, "DPNI get mac address failed:" >> + " Error Code = %d\n", ret); >> + return -ret; >> + } >> + >> eth_dev->dev_ops = &dpaa2_ethdev_ops; >> return 0; >> } >> > >