Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 17:04:15 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r347794 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201905161704.x4GH4FHP092632@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu May 16 17:04:15 2019
New Revision: 347794
URL: https://svnweb.freebsd.org/changeset/base/347794

Log:
  MFC r347190:
  Use PCIV_INVALID in pci_channel_offline() in the LinuxKPI.
  
  Build tested drm-current-kmod prior to commit.
  
  Submitted by:		slavash@
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/pci.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/pci.h	Thu May 16 17:03:16 2019	(r347793)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/pci.h	Thu May 16 17:04:15 2019	(r347794)
@@ -603,7 +603,7 @@ static inline int
 pci_channel_offline(struct pci_dev *pdev)
 {
 
-	return (pci_get_vendor(pdev->dev.bsddev) == 0xffff);
+	return (pci_get_vendor(pdev->dev.bsddev) == PCIV_INVALID);
 }
 
 static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905161704.x4GH4FHP092632>