DPDK patches and discussions
 help / color / mirror / Atom feed
From: Francesco Mancino <francesco.mancino@tutus.se>
To: dev@dpdk.org
Subject: Question about commit 44dddd14059 in DPDK e1000 driver
Date: Tue, 8 Mar 2022 15:03:39 +0100	[thread overview]
Message-ID: <4628af64-1793-115e-68c5-557bbfcadf21@tutus.se> (raw)

I have a question about some changes to the e1000 driver that where 
committed in 2020 (commit 44dddd14059f151f39f7e075b887decfc9a10f11).

I see that e1000_power_down_phy_copper_82575 has been replaced by 
e1000_power_down_phy_copper_base, but the two functions are not the same.

more specifically in the old function we had this code:

-STATIC void e1000_power_down_phy_copper_82575(struct e1000_hw *hw)
-{
-       struct e1000_phy_info *phy = &hw->phy;
-
-       if (!(phy->ops.check_reset_block))
-               return;
-
-       /* If the management interface is not enabled, then power down */
-       if (!(e1000_enable_mng_pass_thru(hw) || 
phy->ops.check_reset_block(hw)))
-               e1000_power_down_phy_copper(hw);
-
-       return;
-}

And the new looks like this:

+void e1000_power_down_phy_copper_base(struct e1000_hw *hw)
+{
+       struct e1000_phy_info *phy = &hw->phy;
+
+       if (!(phy->ops.check_reset_block))
+               return;
+
+       /* If the management interface is not enabled, then power down */
+       if (phy->ops.check_reset_block(hw))
+               e1000_power_down_phy_copper(hw);
+}

The 'if' condition is different, and almost opposite.
Is this intentional?
In my usecase I do not manage to put the link down with the most recent 
DPDK (21.11), but it worked fine with 19.11. Should a configure 
something differently?

Best regards,
Francesco Mancino



                 reply	other threads:[~2022-03-08 14:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4628af64-1793-115e-68c5-557bbfcadf21@tutus.se \
    --to=francesco.mancino@tutus.se \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).