Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2016 09:12:26 GMT
From:      vincenzo@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r306427 - soc2016/vincenzo/head/sys/dev/netmap
Message-ID:  <201607180912.u6I9CQ1h058272@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vincenzo
Date: Mon Jul 18 09:12:25 2016
New Revision: 306427
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=306427

Log:
   freebsd: ptnet: don't use deprecated CTRL register

Modified:
  soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c

Modified: soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c
==============================================================================
--- soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Mon Jul 18 09:11:21 2016	(r306426)
+++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Mon Jul 18 09:12:25 2016	(r306427)
@@ -679,10 +679,6 @@
 		cpu_cur = CPU_NEXT(cpu_cur);
 	}
 
-	/* Tell the hypervisor that we have allocated the MSI-X vectors,
-	 * so that it can do its own setup. */
-	bus_write_4(sc->iomem, PTNET_IO_CTRL, PTNET_CTRL_IRQINIT);
-
 	return 0;
 err_path:
 	ptnet_irqs_fini(sc);
@@ -695,10 +691,6 @@
 	device_t dev = sc->dev;
 	int i;
 
-	/* Tell the hypervisor that we are going to deallocate the
-	 * MSI-X vectors, so that it can do its own cleanup. */
-	bus_write_4(sc->iomem, PTNET_IO_CTRL, PTNET_CTRL_IRQFINI);
-
 	for (i = 0; i < sc->num_rings; i++) {
 		struct ptnet_queue *pq = sc->queues + i;
 



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