* [dpdk-dev] Manual link speed/duplex configuration not working with DPDK
@ 2016-10-21 19:27 Ananda Sathyanarayana
2016-10-22 2:26 ` Anupam Kapoor
2016-10-24 0:54 ` Lu, Wenzhuo
0 siblings, 2 replies; 3+ messages in thread
From: Ananda Sathyanarayana @ 2016-10-21 19:27 UTC (permalink / raw)
To: dev; +Cc: ananda, Vignesh Chinnakkannu
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] Manual link speed/duplex configuration not working with DPDK
2016-10-21 19:27 [dpdk-dev] Manual link speed/duplex configuration not working with DPDK Ananda Sathyanarayana
@ 2016-10-22 2:26 ` Anupam Kapoor
2016-10-24 0:54 ` Lu, Wenzhuo
1 sibling, 0 replies; 3+ messages in thread
From: Anupam Kapoor @ 2016-10-22 2:26 UTC (permalink / raw)
To: Ananda Sathyanarayana; +Cc: dev, Vignesh Chinnakkannu
On Sat, Oct 22, 2016 at 12:57 AM, Ananda Sathyanarayana <
ananda@versa-networks.com> wrote:
> Looks like the above patch is not accepted by the DPDK community yet. Any
> specific reason ?
>
primary reason seems to be because the patch was not in correct format and
e1000 had no maintainer identified. since the latter is now there, the
former can be resent ?
--
thanks
anupam
--
In the beginning was the lambda, and the lambda was with Emacs, and Emacs
was the lambda.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] Manual link speed/duplex configuration not working with DPDK
2016-10-21 19:27 [dpdk-dev] Manual link speed/duplex configuration not working with DPDK Ananda Sathyanarayana
2016-10-22 2:26 ` Anupam Kapoor
@ 2016-10-24 0:54 ` Lu, Wenzhuo
1 sibling, 0 replies; 3+ messages in thread
From: Lu, Wenzhuo @ 2016-10-24 0:54 UTC (permalink / raw)
To: Ananda Sathyanarayana, dev; +Cc: Vignesh Chinnakkannu
Hi Ananda,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ananda
> Sathyanarayana
> Sent: Saturday, October 22, 2016 3:27 AM
> To: dev@dpdk.org
> Cc: ananda@versa-networks.com; Vignesh Chinnakkannu
> Subject: [dpdk-dev] Manual link speed/duplex configuration not working with
> DPDK
>
> 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.
Don’t know the history. Seems it’s discussion but not a patch. Guess that's why it’s not accepted.
It looks OK to me. Maybe we can create a patch for it?
>
>
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-24 0:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-21 19:27 [dpdk-dev] Manual link speed/duplex configuration not working with DPDK Ananda Sathyanarayana
2016-10-22 2:26 ` Anupam Kapoor
2016-10-24 0:54 ` Lu, Wenzhuo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).