Message ID | 1535539660-20228-5-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521529ljw; Wed, 29 Aug 2018 03:50:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY6PMMhNyXpa1scPRtUC+rz8TgZdfpiCluHQZBWWthZLpuF7SxB6sgrShe7To/ot35NYZaR X-Received: by 2002:adf:9d81:: with SMTP id p1-v6mr3724108wre.12.1535539823383; Wed, 29 Aug 2018 03:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539823; cv=none; d=google.com; s=arc-20160816; b=xHRxqEz9Uz6UnoQPPjgMo/YImR2+6qCHpyeVL/oh8QbKD//cixVwf3V9FZBNWBOCTG 9JUyQEw+r8EJnUuO6pro5y0D45gRnn5/ugV0FHd93UBNzSn8Q9XuvOEzHVF76RYKMOSt q/7nE2wSMLylBAOq79Use97ywNXB+74EDEzYVtQI/oRozT80yf6YYTMayvAa59zm1gVI akwGbbK+cO6oo2fNv798W2kqOi52d452voBr8iuL3G7rFEQsSSbc9Ws1BWLR+yYPqVEc yOYOeSFc9/pGccGXpaWJq0HkdLDluT1KBr7lZMpi6pJwdQYA5ViJC43xdQtxuWTQrAaF BBkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=ZUSP2PXK4af6rP5zgf2/64mEeNq5rKwyuc8eWjIqyqY=; b=wbl2dkL91l04C47Zpy6gji7YXJjhJzvepx8yoOldQ5V59QTZ/UKmvhnwlCL5s5wSRn 3i2KE7JenR6yJTE798oXN1AmjxCcS7v4DLv0eLodKs9qtyGrXNSGQnaeq4xUtNA6+nSS KwHbOeRCD5WJXEVL8W8fcKq3AKjYo3l5PhV9TydlF4DoRo7lRK/4TfKyJv9hKaaWffPA XECBDu0nGZiqhEO/xu1XprisHyiXMVuu7w06rzp44Y3Xy6QXavBDuYwfLZ2y/+aE24Bd 8HkxdcN5HGbzCUnMJ4TZFBIIseb3FhmjUxAr0kEgfI4ftP6VbxubFwDPPa4RuxeN3COi wmoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="JEWsfn4/"; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id x20-v6si2825811wmc.137.2018.08.29.03.50.23; Wed, 29 Aug 2018 03:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="JEWsfn4/"; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 709CE4D3A; Wed, 29 Aug 2018 12:49:52 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0059.outbound.protection.outlook.com [104.47.1.59]) by dpdk.org (Postfix) with ESMTP id 83C23F11 for <dev@dpdk.org>; Wed, 29 Aug 2018 12:49:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZUSP2PXK4af6rP5zgf2/64mEeNq5rKwyuc8eWjIqyqY=; b=JEWsfn4/wmeJi/8Qy12lZcdsZgIZQQ0tLZEg/ZeVGuLpVbamLehgPDXZd1y9oQoRqz8nIXFuTpZSFr79FlBePt+6zF/dhklhUrCB6K6JH2g7aFTlbdwxpRRIWKNzQkmPlTnbyq+wXjw//Plr7TEh+CHg1jTVzhuB3373JWVASQI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:46 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:31 +0530 Message-Id: <1535539660-20228-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 279b1cd2-7b3f-45e6-23d8-08d60d9d2366 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics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np07NSWNl8QgK0U/0kHoraOLIMgt3tVAFpxfKjRZLyojYUBugZ0bBbnEhs2DUJ3gsTzfqS6K2XGretxNK+VtgINYOtMBKz5xIXbXqD8dUKke6g1gO2rVyaRHP8runmvCStXWu/n8Dxdl7VDPuCB2mYJ3swvEcrSZbSfdb/W8tIw0jnkU5QHSMFyz3+Rwfon9KUekI18/E2yPBYadD03J31j0zD63xhtng/4shLrftk3peirFiCU8K0/iA25mjHYINwddEDhEi/kIRkOnxhPwYjqJQFnEAcXsS0aSVvDdEyK7c+1mrV0IwVesCOWLGn/Zkg9Dz3zzPmkBvKZ1Fsofz288TtvojDJzLFY7Ni0Et/BnT5iv; 4:3Hm/GVckba8fCe4zpYaYr+Un9ak9PPFEwDkeaOsm+Mbt8vYZyk4PGNvnUSRWnx719ZbgrhRw9PcQDiXUBi7o3tVjqCRB70LcFNqohvBRv2kEwLrJjH4ZTxDRZqltuxJqLyXlMMxJ+0WB0HUM9fZHg2oJjKpK/f3P6wnxziY1K3Fsai7l4FW3wotgQ+e/tRu45NLxvw3S9F0o94ph+diXj4pG86sgYuOVt7/C5eNB7R15nsmC3/fMCYMiZE2jOhGa0xmwfClq15U9YPyKNudoCKCMVScuDQTM1mMvEq4WG5JjApqjsAUN6qBr1PvGzUhg X-Microsoft-Antispam-PRVS: <VI1PR0401MB25434F0A8A4022F199504EEB89090@VI1PR0401MB2543.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(575784001)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:H/2cooX8bUiQcPc/mF26XRsfIFePZbZMUWT+Zz+?= +b46i4/siG4ivxE+v5fY2OZT1QAHfz4U3Oo5pq+YpT64asiHj+InMPDWGz5FKlLsNCJg9fBdPVHjdYqwiCQElqZLvWTbEKfk3KeAtGeL759C7IGNHZp7Bddmu7EkElnvLjUSBPn/ZVVsZhVws3VptljGm4HiDPykLX041JG2ONdt0Ppnsyel3VOwizhIXg6oMcD/+x84VOXxWrIo7xQySpjb3Vj86bDUi27bDzdADpCajzxHyGxyy/0qH+AWhhP9JB1+aWv1lBg6Hm4a+9AKbP3jpCxqfDxlnBUetLjN6QciFpBnCOsi7Fnz/talVcmjj6q6/UoH07n9HJjnluou5mK2SjK/5f2p9y3p+ugLIocxAMKbRAMqcwDMelBz8dCtfi3DxYNgh4otWZ64oQoyRhhkqjLQrpB0oq8YmWCGM/gAVkdqGCx/H6HoSts27aoryPVe1wwDbMEvBvktD4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Hk0RbceoIce6p90LrtNmtIOuzXXPqRTgdVX6VHYT2uxFFz0nAGGIY1Jvpbw8zrfj+V5QfUdIrMnx4D SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:46.6540 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 279b1cd2-7b3f-45e6-23d8-08d60d9d2366 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 04/13] net/dpaa: set correct speed based on MAC type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
driver/net: NXP DPAA driver enhancements
|
expand
|
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index a0e3f24..4e5cc0f 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -338,8 +338,15 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev, dev_info->max_vfs = 0; dev_info->max_vmdq_pools = ETH_16_POOLS; dev_info->flow_type_rss_offloads = DPAA_RSS_OFFLOAD_ALL; - dev_info->speed_capa = (ETH_LINK_SPEED_1G | - ETH_LINK_SPEED_10G); + + if (dpaa_intf->fif->mac_type == fman_mac_1g) + dev_info->speed_capa = ETH_LINK_SPEED_1G; + else if (dpaa_intf->fif->mac_type == fman_mac_10g) + dev_info->speed_capa = (ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G); + else + DPAA_PMD_ERR("invalid link_speed: %s, %d", + dpaa_intf->name, dpaa_intf->fif->mac_type); + dev_info->rx_offload_capa = dev_rx_offloads_sup | dev_rx_offloads_nodis; dev_info->tx_offload_capa = dev_tx_offloads_sup |