[dpdk-dev] bug in net/ixgbe/ixgbe_ethdev.c:ixgbe_dev_link_update beginning in 17.05-rc3?

Roger B. Melton rmelton at cisco.com
Wed May 10 14:19:10 CEST 2017


Thanks  -Roger


On 5/10/17 4:20 AM, Dai, Wei wrote:
> Yes, it is a bug.
> The hw->mac.ops.get_media_type of ixgbe VF is NULL.
> I have just submitted a patch to fix it.
> http://dpdk.org/dev/patchwork/patch/24188/
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Roger B Melton
>> Sent: Wednesday, May 10, 2017 1:53 AM
>> To: dev at dpdk.org; laurent.hardy at 6wind.com
>> Subject: [dpdk-dev] bug in net/ixgbe/ixgbe_ethdev.c:ixgbe_dev_link_update
>> beginning in 17.05-rc3?
>>
>> After updating to 17.05-rc4 I hit a crash in
>> drivers/net/ixgbe/ixgbe_ethdev.c:ixgbe_dev_link_update().  The issue was
>> a NULL get_media_type FV for the VF driver.
>>
>> Looking at recent commits, I see the following added the
>> get_media_type() check:
>>
>>      commit c12d22f65b132c56db7b4fdbfd5ddce27d1e9572
>>      Author: Laurent Hardy <laurent.hardy at 6wind.com>
>>      Date:   Thu Apr 27 17:03:42 2017 +0200
>>
>>          @@ -3793,6 +3797,14 @@ ixgbe_dev_link_update(struct
>> rte_eth_dev
>>          *dev, int wait_to_complete)
>>
>>                   hw->mac.get_link_status = true;
>>
>>          +       if ((intr->flags & IXGBE_FLAG_NEED_LINK_CONFIG) &&
>>          +               hw->mac.ops.get_media_type(hw) ==
>>          ixgbe_media_type_fiber) {
>>          +               speed = hw->phy.autoneg_advertised;
>>          +               if (!speed)
>>          +                       ixgbe_get_link_capabilities(hw,
>> &speed,
>>          &autoneg);
>>          +               ixgbe_setup_link(hw, speed, true);
>>          +       }
>>          +
>>
>> This is fine for the PF driver, but we shouldn't invoke get_media_type
>> for the VF.
>>
>>
>> Laurent,
>>
>> Is this a bug, or am I missing something?  If it is a bug, what's the
>> proper fix?
>>
>> Regards,
>> Roger
>>
>>
>>
>>
>> --
>>
>> ________________________________________________________________
>>


More information about the dev mailing list