svn commit: r339319 - head/sys/dev/ixgbe

Yuri Pankov yuripv at FreeBSD.org
Thu Oct 11 22:27:13 UTC 2018


Author: yuripv
Date: Thu Oct 11 22:27:12 2018
New Revision: 339319
URL: https://svnweb.freebsd.org/changeset/base/339319

Log:
  Fix PNP entries for if_ix and if_ixv properly using the IFLIB_PNP_INFO()
  macro.
  
  Reviewed by:	imp, sbruno
  Approved by:	re (gjb), kib (mentor)
  Differential Revision:	https://reviews.freebsd.org/D17473

Modified:
  head/sys/dev/ixgbe/if_ix.c
  head/sys/dev/ixgbe/if_ixv.c

Modified: head/sys/dev/ixgbe/if_ix.c
==============================================================================
--- head/sys/dev/ixgbe/if_ix.c	Thu Oct 11 21:18:51 2018	(r339318)
+++ head/sys/dev/ixgbe/if_ix.c	Thu Oct 11 22:27:12 2018	(r339319)
@@ -237,9 +237,7 @@ static driver_t ix_driver = {
 
 devclass_t ix_devclass;
 DRIVER_MODULE(ix, pci, ix_driver, ix_devclass, 0, 0);
-MODULE_PNP_INFO("U16:vendor;U16:device", pci, ix, ixgbe_vendor_info_array,
-    nitems(ixgbe_vendor_info_array) - 1);
-
+IFLIB_PNP_INFO(pci, ix_driver, ixgbe_vendor_info_array);
 MODULE_DEPEND(ix, pci, 1, 1, 1);
 MODULE_DEPEND(ix, ether, 1, 1, 1);
 MODULE_DEPEND(ix, iflib, 1, 1, 1);

Modified: head/sys/dev/ixgbe/if_ixv.c
==============================================================================
--- head/sys/dev/ixgbe/if_ixv.c	Thu Oct 11 21:18:51 2018	(r339318)
+++ head/sys/dev/ixgbe/if_ixv.c	Thu Oct 11 22:27:12 2018	(r339319)
@@ -143,8 +143,7 @@ static driver_t ixv_driver = {
 
 devclass_t ixv_devclass;
 DRIVER_MODULE(ixv, pci, ixv_driver, ixv_devclass, 0, 0);
-MODULE_PNP_INFO("U16:vendor;U16:device", pci, ixv, ixv_vendor_info_array,
-    nitems(ixv_vendor_info_array) - 1);
+IFLIB_PNP_INFO(pci, ixv_driver, ixv_vendor_info_array);
 MODULE_DEPEND(ixv, pci, 1, 1, 1);
 MODULE_DEPEND(ixv, ether, 1, 1, 1);
 #ifdef DEV_NETMAP


More information about the svn-src-head mailing list