From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6E6C0A00C2; Sun, 5 Jun 2022 09:52:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7652C42847; Sun, 5 Jun 2022 09:51:53 +0200 (CEST) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-eopbgr90095.outbound.protection.outlook.com [40.107.9.95]) by mails.dpdk.org (Postfix) with ESMTP id DA65A4021E for ; Fri, 3 Jun 2022 16:44:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f954rY0Mn70gnq6wVCrXLfKxLAT1LtqsIWFF41pVaIF7Plsuvr1rEUVZp+w3mOEQ0HAwMneiwpyy8d/pmZFaqGNuSWSz4LZcWP91pL0Vnrp/JQ1gdPt9t0KeoE/TVUXe4C3d1MIpbCWB0LWi8P/ZDTRiybhPvnj7IF+YNCuLjOlyZd7vL5dTzISLaQtie4e8CiAeOGtWx8TxB1Xn69/mzy4Kb6JAaNF1d1rtCCm/qHGRxMEMoxqLqpv3ykb7WlMm1O4XagUDdMwvdaSsIAEE/6u/qeFexmdJ9LHwS4mTRkTo5IJM2bOQsHjJzY8gwyyLfMf3BcTfa/LJ3rPNme6D3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DMLGz4t/7j/DAdAdXaDzekM8qw5myAUMS9YUjBH9wOs=; b=GL9i1dL5UdmCij1o494mr5Nz8hQyh2taxF0kHMD1AnOXY2BUmvs1xkmo4v72EYtrjxKFBWyeqsJl4hu6E0mBZdowhbYmDBIwE1NprIFfBRb8ffGmslrLJEWvGO16PAtc2Krk3MaiyFuoC+m0+MyNoBX/t4VGK/H9HOwHzl+y3k4mIkcXM9uCBfkur5WkJF5W/Dh4mUkmomkqtpfNavWoDmmRVuo28jaoJT3kZXVs1rKCPKHTbxznrdFWsfi9NtLQhZlNO7cSTVgjLHUyzZrVcYXH5VmoPw33GcMMkVG77PzPxkznAdjScc5Bo3ovJ+f/m1QKUWuXcJXingMj0s3VAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ekinops.com; dmarc=pass action=none header.from=ekinops.com; dkim=pass header.d=ekinops.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ekinops.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DMLGz4t/7j/DAdAdXaDzekM8qw5myAUMS9YUjBH9wOs=; b=uTVb4rqFtbmyNAgvn4p9yW5UUrYLss6gTc2RS8HwAj8uG5pp4r+pNyHVoRrcr/TTJ0TdOzcsn61HVbYLpMF/xnLItB4qhpuLGB80jAfeJOXLaNePQpApo6O148LGKCoPnjDAm8O5psJhYy9a1o876zmbqXYQie8ohoBIQqMzuV8= Received: from PR1P264MB2030.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1b0::22) by PR1P264MB3678.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:185::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Fri, 3 Jun 2022 14:44:55 +0000 Received: from PR1P264MB2030.FRAP264.PROD.OUTLOOK.COM ([fe80::1870:4f8f:366f:874a]) by PR1P264MB2030.FRAP264.PROD.OUTLOOK.COM ([fe80::1870:4f8f:366f:874a%8]) with mapi id 15.20.5314.015; Fri, 3 Jun 2022 14:44:55 +0000 From: Abdelfattah Chehab To: "dev@dpdk.org" Subject: [DPDK 20.11] ixgbe VF PMD does not support LSC interrupts. Thread-Topic: [DPDK 20.11] ixgbe VF PMD does not support LSC interrupts. Thread-Index: Adh3WC9yKZNqoyasRIaYRugLJEMObg== Date: Fri, 3 Jun 2022 14:44:55 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ekinops.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6c8d2c2b-b40a-4f4f-31e8-08da456f9ffa x-ms-traffictypediagnostic: PR1P264MB3678:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vlJ51Smz5e8pu1muIC333jPiiTSjy1u702VDfeZcU8Lc5poFkmAq33Nchy5iKDSCnoKFzaSieYxThkI/QH4NfjblBIWIPaiCHhowb7S7n1B5tv56AWdneO905V/owRuQw1x/aWbtJQsaLXGNB6t75ncqv3QgI7Mu448OKs6WMashibfdXMiQVnAZLPH9VCJ7U/IlWcyYYMmyeShMRx7serknjGoUpoYcuMpVzhpQMNagJNDgYKd4V/2c89cIUNBstxMRAWG6HdQTGM7tYUg+ML4iNvnC0dkhzjZSRKeAem8VmL0fYQ7+dz7sBRn+xAfeGNTyKF5dPVbxJCVrc1NVZ533HPz/iwPKckILYFuG4dns5mrio3/jj52z32P8IOASgenSg3uWB1p54PBVwqkZvD3mDZ2W9BKDPmieKD2EZzkpF27MME821btIza0h/KS7+a6AoBBd7L+igFo6vhONLcmiqdXGVGnz2gVelZHI58aHN7PyzqhpSq8Uvv02MWtdAdTLwQfds8qt/1Tc+Jem0m8486NViy7QsJPj58hiLMVu9YkwYh2PSqvl7B65jmn8ucpWTin37ZIxsmUgV8Z4Cz5K31vG0mGiw7y9dA3RDRoWKvIPRYGBrqBzEgP1tl1FopkaKaRs8AwAw7RFvLSpSQhZ4jnxqvCwL1XQo8D4aMAiP0AjHgFcyExNv+MSEi3LGDhgDkgHfqTrjHl87Vopww== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR1P264MB2030.FRAP264.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(366004)(9326002)(6916009)(64756008)(66446008)(66556008)(8676002)(122000001)(38070700005)(76116006)(66476007)(66946007)(33656002)(316002)(55016003)(38100700002)(83380400001)(7696005)(8936002)(6506007)(186003)(52536014)(9686003)(26005)(86362001)(5660300002)(4744005)(71200400001)(508600001)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?slTLNP9zIzMAqr3J39gu2sQvU2BSbK6s+BaS/32pjRWVZPKs+xNsnrL4VUHB?= =?us-ascii?Q?pmBup7hryHlnoZPu8geYeIJXG5tFNwZFHl43GALvNyaiqDlq1BLw4k/LHAks?= =?us-ascii?Q?6PYwGfKPP7rDYtRWjM1jjxQL0QE8h1qpyMbfrc6yNvyI3sJe39WDrhOwUx7T?= =?us-ascii?Q?E1/LqQpDoNK8L4hXdHj51Gn+egW2cD8kYg7CJXgGRF8lKOygAYlKw3qSTgib?= =?us-ascii?Q?6ipxI+55Iyu9HWaKrGzJ1Z+OlFtvMCRZz3OQYKgbcNxazIHRLlaYwlFNeCZ0?= =?us-ascii?Q?6YUCLW45nxHiEm2Ly17ZYVNLrJuuqHZ7gUpgEckOgFcd6W4a1lmLzVdt6XxD?= =?us-ascii?Q?YV+n41oqJlnOkacOIZP1VbbXdvPJgjZZxw+hXzMp7VKVk2KTGybB/Of7KKqQ?= =?us-ascii?Q?wSnvl9DoZr1p/p1sOQW9kuOMYWaJUjAhw5ghLW5jq3yY9cry7WYZVFxhen0N?= =?us-ascii?Q?LZ3CbSuFl8v/er4BXHVvlHxGlBn3y2ZzMpqRasFabL7miIuOFj25Irl47OEn?= =?us-ascii?Q?kwqgIpv1F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f3Bzd?= =?us-ascii?Q?mGsikttAE+kc8w4yBQEWoXRnOu0YjyETt4ZaApSifupW4tu6Rvww/rgpOtKM?= =?us-ascii?Q?7M+RA+lFehHMWvtf1+1heRwKgvYIDmXojGQ1l1PBztWT0/E2X7EYLS9lNJ5V?= =?us-ascii?Q?K5EYrs45PNXBqghoJpfblCYWL+wP3YtCAcPPBsO4gUz5a8MaMVxuIPYyC0ar?= =?us-ascii?Q?dgLrWIBazgTApBOXhxwMEWwnFMcE41d4NJ+gdKEgKpB6o0QE5w2+j7bsPa9d?= =?us-ascii?Q?QqCam0Bhhl3Left3rxA3OjQYVOyuk0ka0OQkML8NCUkZyBf8SPtcZ024EXDC?= =?us-ascii?Q?efDo2fnaiqEY2jyudKcu0/kyGZdXKIvXafYePGuH9vQjkKInGjUg?= Content-Type: multipart/alternative; boundary="_000_PR1P264MB2030F648796CE26AE3826F72DFA19PR1P264MB2030FRAP_" MIME-Version: 1.0 X-OriginatorOrg: ekinops.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PR1P264MB2030.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 6c8d2c2b-b40a-4f4f-31e8-08da456f9ffa X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2022 14:44:55.3537 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f57b78a6-c654-4771-a72f-837275f46179 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: v615hN6csy5BP6YmL213NmqPifq9T8vz3n5UQdc6E7WHlvK/r9yAnF/DJcj2zt+8s3aT4F0q+oqFU+mZciuogEKVqRIwtHGmPnd1M2C8lVOHCCBO7wb8SsWzlPHXcumW X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR1P264MB3678 X-Mailman-Approved-At: Sun, 05 Jun 2022 09:51:46 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --_000_PR1P264MB2030F648796CE26AE3826F72DFA19PR1P264MB2030FRAP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, While using net_e1000_igb_vf PMD, registering LSC Callbacks will have no ef= fect. rte_eth_dev_callback_register(port, RTE_ETH_EVENT_INTR_LSC, callback, NULL)= ; in the PMD code: .drv_flags =3D RTE_PCI_DRV_NEED_MAPPING While for other working PMDs: drv_flags =3D RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC Meanwhile, The link status is updated correctly on demand: (gdb) call rte_eth_link_get(4, $mylink) $3 =3D 0 (gdb) p *$mylink $4 =3D {link_speed =3D 1000, link_duplex =3D 1, link_autoneg =3D 1, link_st= atus =3D 1} (gdb) call rte_eth_link_get(4, $mylink) $5 =3D 0 (gdb) p *$mylink $6 =3D {link_speed =3D 0, link_duplex =3D 0, link_autoneg =3D 0, link_statu= s =3D 0} Does it mean that I have to fetch the link using poll action? Will LSC interrupt be implemented for this PMD in future release ? Thanks --_000_PR1P264MB2030F648796CE26AE3826F72DFA19PR1P264MB2030FRAP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,

While using net_e1000_= igb_vf PMD, registering LSC Callbacks will have no effect.

rte_eth_dev_callback_r= egister(port, RTE_ETH_EVENT_INTR_LSC, callback, NULL);

 

in the PMD code:<= /o:p>

 .drv_flags =3D R= TE_PCI_DRV_NEED_MAPPING

 

While for other workin= g PMDs:

drv_flags =3D RTE_PCI_= DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC

 

Meanwhile, The link st= atus is updated correctly on demand:

(gdb) call rte_eth_lin= k_get(4, $mylink)
$3 =3D 0
(gdb) p *$mylink
$4 =3D {link_speed =3D 1000, link_duplex =3D 1, link_autoneg =3D 1, link_st= atus =3D 1}
(gdb) call rte_eth_link_get(4, $mylink)
$5 =3D 0
(gdb) p *$mylink
$6 =3D {link_speed =3D 0, link_duplex =3D 0, link_autoneg =3D 0, link_statu= s =3D 0}

 

Does it mean that I ha= ve to fetch the link using poll action?

Will LSC interrupt be = implemented for this PMD in future release ?

 

Thanks

--_000_PR1P264MB2030F648796CE26AE3826F72DFA19PR1P264MB2030FRAP_--