From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) by dpdk.org (Postfix) with ESMTP id 3407537B8 for ; Fri, 21 Oct 2016 21:27:12 +0200 (CEST) Received: by mail-ua0-f175.google.com with SMTP id p25so6195064uaa.0 for ; Fri, 21 Oct 2016 12:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=versa-networks-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:thread-index:date:message-id:subject:to:cc; bh=greGNgGCKBOEN2y4JEuDDkPWBNA7G77qIElxNXidjCU=; b=lJRX0qO4etDH5EFwgUSB7kZfhq9tvgmuc/KG1GoCJS5Os909cW8ItKoRfzHtNP0I/M FLzo7NpudYh7w6a+4YRiykfhxfFhk2jQ8dR5RiSR+NEzH/hDuMRbcNBLChiCzaxhdhIr uzXFFMRL2Ar7I0W3k92Y+ZGm/g2CqdQWKjFgW3usa5F9Fsa1YFAFCKNPCELLvmgXqon8 CEjMS0RLqVHPHPMqmCRoz1EuIa407q2/3qAfaGdHvifTyXtEPgRuyDDMTTTy6NXOwxkb 8e2my7uIqo/Zo02qbDFOMClODbvfx77zqyEVtNh3Gs0VclRPgF05q9uBE7L4MAKJZ9+C RrOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:thread-index:date:message-id :subject:to:cc; bh=greGNgGCKBOEN2y4JEuDDkPWBNA7G77qIElxNXidjCU=; b=X29ES1kfDbMDGYbc3ec0270MB7obm+KPlfWXUJqu0IzFw/jM7XwHuKcFx8LJhIRU2j +5MkmlMn9SgeiP+fHj3bq/zsWjhFrmSZjYbHQvnpycrCrWGUjwyrzcQ+unOhRYRoGQIW FRTZb6k0+luNvVPBiNqjZ3J7OZinki4gW895YeIB4UBQ1DW6CQqeDAci1F8HZGAxaPrr qKjm/dzSl/CGqpEFhTnUL98DezQEoVVgt6mW+8YkVMSRFV9BFRYO1QmnCBg5gFJEMEdl qpKL53sKcwxuLyxLqCztkv66R+FutKYBE936nwJrgTvcGTC3aNgSr1PB48mP8pRjcKeV 4XMw== X-Gm-Message-State: ABUngvd+lwJ+1drhRhccuYOgrBfPI+iYtULO6qnUCPjj464Y7SZjW+9CxW0985Js4LeU2Y2flmR+H3ERisRg61Sj X-Received: by 10.159.37.39 with SMTP id 36mr953350uaz.99.1477078030586; Fri, 21 Oct 2016 12:27:10 -0700 (PDT) From: Ananda Sathyanarayana MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdIr0OYrhsWwotevQJ24CfrtFXTxfQ== Date: Fri, 21 Oct 2016 12:27:11 -0700 Message-ID: <68694134d146c7848435452dad3446d9@mail.gmail.com> To: dev@dpdk.org Cc: ananda@versa-networks.com, Vignesh Chinnakkannu Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Manual link speed/duplex configuration not working with DPDK 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, 21 Oct 2016 19:27:12 -0000 Hi All, While testing manual link speed/duplex configuration with DPDK 1.7.1, I observed the same issues mentioned by the below post http://dpdk.org/ml/archives/dev/2015-January/010834.html. I see the same issue with 16.04 as well. Looks like the above patch is not accepted by the DPDK community yet. Any specific reason ? >>From the code, it looks like, hw->mac.autoneg, variable is used to switch between calling either autoneg function or forcing speed/duplex function. But this variable is not modified in eth_em_start/eth_igb_start routines (it is always set to 1) while forcing the link. s32 e1000_setup_copper_link_generic(struct e1000_hw *hw) { s32 ret_val; bool link; DEBUGFUNC("e1000_setup_copper_link_generic"); if (hw->mac.autoneg) { <<<<<<<<<<<< always set, is not modified in eth_em_start/eth_igb_start /* Setup autoneg and flow control advertisement and perform * autonegotiation. */ ret_val = e1000_copper_link_autoneg(hw); if (ret_val) return ret_val; } else { /* PHY will be set to 10H, 10F, 100H or 100F * depending on user settings. */ DEBUGOUT("Forcing Speed and Duplex\n"); ret_val = hw->phy.ops.force_speed_duplex(hw); <<<<<<<<<<<< Not called at all if (ret_val) { DEBUGOUT("Error Forcing Speed and Duplex\n"); return ret_val; } } } Thanks, Ananda