From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Hardy Subject: Re: [dpdk-stable] [PATCH] net/ixgbe: fix calling null function of VF Date: Wed, 10 May 2017 14:33:25 +0200 Message-ID: <59130895.90503@6wind.com> References: <1494399602-33955-1-git-send-email-wei.dai@intel.com> <8ad4912d-05d5-fdad-8bb5-a3e414c45738@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, stable@dpdk.org To: "Roger B. Melton" , Ferruh Yigit , Wei Dai , wenzhuo.lu@intel.com, konstantin.ananyev@intel.com Return-path: Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by dpdk.org (Postfix) with ESMTP id 24AC02952 for ; Wed, 10 May 2017 14:33:31 +0200 (CEST) Received: by mail-wr0-f179.google.com with SMTP id w50so42208167wrc.0 for ; Wed, 10 May 2017 05:33:31 -0700 (PDT) In-Reply-To: <8ad4912d-05d5-fdad-8bb5-a3e414c45738@cisco.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Ferruh, Wei, Roger, PSB I also redo test plan provided through http://dpdk.org/dev/patchwork/patch/20502/ Thanks & regards, Laurent On 05/10/2017 02:20 PM, Roger B. Melton wrote: > > > On 5/10/17 5:50 AM, Ferruh Yigit wrote: >> On 5/10/2017 8:00 AM, Wei Dai wrote: >>> hw->mac.ops.get_media-type() of ixgbe VF is NULL and should not >>> be called directly. It had better be replaced by calling >>> ixgbe_get_media_type( ) to avoid crash. >>> >>> Fixes: c12d22f65b13 ("net/ixgbe: ensure link status is updated") >>> Cc: stable@dpdk.org >>> >>> Signed-off-by: Wei Dai Acked-by: Laurent Hardy >> Hi Roger and Laurent, >> >> This is very close the release, can you please support verifying this >> defect? >> >> An explicit Acked-by and/or Tested-by would help a lot. >> >> Thanks, >> ferruh > > Hi Ferruh, > > Happy to test it. I'll get back to you shortly. > > Regards, > Roger > >> >> >>> --- >>> drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c >>> b/drivers/net/ixgbe/ixgbe_ethdev.c >>> index ec667d8..ed2baec 100644 >>> --- a/drivers/net/ixgbe/ixgbe_ethdev.c >>> +++ b/drivers/net/ixgbe/ixgbe_ethdev.c >>> @@ -3799,7 +3799,7 @@ 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) { >>> + ixgbe_get_media_type(hw) == ixgbe_media_type_fiber) { >>> speed = hw->phy.autoneg_advertised; >>> if (!speed) >>> ixgbe_get_link_capabilities(hw, &speed, &autoneg); >>> >> . >> >