From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by dpdk.org (Postfix) with ESMTP id 1ECEE2B91 for ; Thu, 17 Mar 2016 01:08:40 +0100 (CET) Received: by mail-oi0-f44.google.com with SMTP id r187so51322058oih.3 for ; Wed, 16 Mar 2016 17:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=JdQaKbfoJPh2LF7UoBPSIBTNDjDNF5+Mc1iNi+S069o=; b=Iqom7GuqhLXz7Q2ZMW9E4n1fg3VlHJFkDcAznb3aHSuX2X3YCakz+7tEx0TWUFW4ZZ IfyB5a9CHwJfDhUj5nn7HyyXRXSX5bwARkWYqXpiYf1ci9iCIlcaIEcIEoA+vNPRXvR9 fBDpMAzMCRJR7ikFOpKR9BfyGttEinm5upPCrfC5zfs2he9gF3Ul75sv7KYUVJBWjVQZ 7hmMlCCdikz3ApeOp1NsHssm/aymOw2/RC9mjl5I+ghEYPhn8IyD9MSDotMdKecr6j2a 9+RwNxbpRi8bS0fTYYJbAtauj+f5HpyPXV5rukJtx01S2FP66rqHueCTnlsiX7HZJ/pC zkYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=JdQaKbfoJPh2LF7UoBPSIBTNDjDNF5+Mc1iNi+S069o=; b=GLQhquLBvO1u7A3Ej3K3KJIZxkEQHzh/uJXi6BMCuUGeFkFoxuFYQzU/buU+iFBIZ4 xo0UDHPbOodIkVblwTAUjZ1b1nnVE2XYplYqumyxvsJdoapeEIvOPeiab269WHYRU+EZ 4i6RlXy33siohfG3G9FtGycDCT+vIH5lO/EurAwQjxshNgwX3gQYOaEXovxRJ09Muy5+ l/B/HD7j6j+7IUVJ8HBMbfxzqUTkeWv9ORCYwa2wHGC01HeUGNsVG28MzlUq5dHWqKAM CXs0V9MgtGD1VpE/o5ajPaPLav0TcD+S8KqPQ2WLLstTRUbAIuF/YuSzpdCxkBvMO7ss tLCg== X-Gm-Message-State: AD7BkJJSQSibi7K3qugdk671q2MiaAAUg6Zkk17StXmkgZMHLIGKW5i7HsZXHyJOIaqKAYuDtNKJjOPQEb4kPg== MIME-Version: 1.0 X-Received: by 10.202.85.23 with SMTP id j23mr2624099oib.71.1458173319564; Wed, 16 Mar 2016 17:08:39 -0700 (PDT) Received: by 10.202.177.2 with HTTP; Wed, 16 Mar 2016 17:08:39 -0700 (PDT) Date: Wed, 16 Mar 2016 17:08:39 -0700 Message-ID: From: Efstratios Karatzas To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Detecting breakout cable usage in xl710 NIC at run time through dpdk driver / i40e interface 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: Thu, 17 Mar 2016 00:08:40 -0000 Hello dev@dpdk.org In section "3.3.5.6 Update link mode" of the XL710 datasheet Rev2.4 there is a description on how to change the link mode configuration of the NIC to enable support for breakout cable (4x10). This can also be accomplished via the qcu utility provided by intel. What I am looking for is whether there is way to reliably detect if a breakout cable is plugged into the XL710 at run time. Keeping also in mind that the cable could be either in the form of direct attach 4x10 or a standard qsfp + breakout fiber cable. The end goal here is to automatically change the link mode of the NIC to the appropriate value without requiring any manual step from user. For example if direct attach 4x10 cable is plugged into the XL710 port, detect this and switch the link mode configuration to 4x10. After looking into the i40e_* API and the datasheet, I can't find a way to reliably perform this kind of check and I'm now wondering if anyone knows if this is at all possible and if so, how I could go about performing this kind of check. Thank you, Efstratios Karatzas