socsvn commit: r307231 - soc2016/vincenzo/head/usr.sbin/bhyve

vincenzo at FreeBSD.org vincenzo at FreeBSD.org
Fri Aug 5 14:05:25 UTC 2016


Author: vincenzo
Date: Fri Aug  5 14:05:23 2016
New Revision: 307231
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307231

Log:
   bhyve: ptnet: support VNET_HDR register

Modified:
  soc2016/vincenzo/head/usr.sbin/bhyve/net_backends.c
  soc2016/vincenzo/head/usr.sbin/bhyve/pci_ptnetmap_netif.c

Modified: soc2016/vincenzo/head/usr.sbin/bhyve/net_backends.c
==============================================================================
--- soc2016/vincenzo/head/usr.sbin/bhyve/net_backends.c	Fri Aug  5 14:04:39 2016	(r307230)
+++ soc2016/vincenzo/head/usr.sbin/bhyve/net_backends.c	Fri Aug  5 14:05:23 2016	(r307231)
@@ -426,7 +426,7 @@
 
 static int
 netmap_set_cap(struct net_backend *be, uint64_t features,
-		    unsigned vnet_hdr_len)
+	       unsigned vnet_hdr_len)
 {
 	return netmap_set_vnet_hdr_len(be, vnet_hdr_len);
 }
@@ -974,7 +974,7 @@
 
 int
 netbe_set_cap(struct net_backend *be, uint64_t features,
-		   unsigned vnet_hdr_len)
+	      unsigned vnet_hdr_len)
 {
 	int ret;
 

Modified: soc2016/vincenzo/head/usr.sbin/bhyve/pci_ptnetmap_netif.c
==============================================================================
--- soc2016/vincenzo/head/usr.sbin/bhyve/pci_ptnetmap_netif.c	Fri Aug  5 14:04:39 2016	(r307230)
+++ soc2016/vincenzo/head/usr.sbin/bhyve/pci_ptnetmap_netif.c	Fri Aug  5 14:05:23 2016	(r307231)
@@ -277,6 +277,11 @@
 			sc->ioregs[index] = value;
 			ptnet_csb_mapping(sc);
 			break;
+
+		case PTNET_IO_VNET_HDR_LEN:
+			netbe_set_cap(sc->be, netbe_get_cap(sc->be), value);
+			sc->ioregs[index] = value;
+			break;
 		}
 		return;
 	}


More information about the svn-soc-all mailing list