[dpdk-dev] [PATCH 2/2] net/ixgbe: add support of loopback for X540/X550
Meunier, Julien (Nokia - FR/Paris-Saclay)
julien.meunier at nokia.com
Mon Feb 18 12:20:22 CET 2019
Hi all,
Sorry for the delay. See my reply inline.
On 12/02/2019 07:37, Zhao1, Wei wrote:
> HI, Meunier && qi
>
> Is it possible to add these two function of ixgbe_setup_phy_autoneg_x540 and
> ixgbe_setup_phy_autoneg_x550 in a file out of base folder? We need to avoid
> change code in that, is that right? @qi
> And also, it seems these 2 function do not have much difference,
> can we use one instead of two function?(This point is not so important)
OK, no problem. I had some doubts when I modified these files.
So, I guess it's OK for you to have direct PHY operations (hw->phy.ops.
[read|write]_reg) in ixgbe_rxtx.c ?
>> * Start Transmit and Receive Units.
>> @@ -5172,6 +5223,12 @@ ixgbe_dev_rxtx_start(struct rte_eth_dev *dev)
>> if (dev->data->dev_conf.lpbk_mode != 0) {
>> if (hw->mac.type == ixgbe_mac_82599EB)
>> ixgbe_setup_loopback_link_82599(hw);
>> + else if (hw->mac.type == ixgbe_mac_X540)
>> + ixgbe_setup_loopback_link_x540(hw);
>> + else if (hw->mac.type == ixgbe_mac_X550 ||
>> + hw->mac.type == ixgbe_mac_X550EM_x ||
>> + hw->mac.type == ixgbe_mac_X550EM_a)
>> + ixgbe_setup_loopback_link_x550(hw);
>
> The same, why do we have 2 branch for x540 and x550?
>
I just wanted to respect the initial rule: 1 model = 1 function. But I
can merge them in one function as it's the same mechanism in order to
setup the loopback.
I will update a new patchset today.
Best regards,
Julien Meunier
More information about the dev
mailing list