1
- From b75b45b43e69db02e32a8b4880d62360a58f5d6c Mon Sep 17 00:00:00 2001
1
+ From 555de5cd19882a0c96abaa1f4957af0a979e9c98 Mon Sep 17 00:00:00 2001
2
2
From: Andy Fiddaman <
[email protected] >
3
3
Date: Mon, 28 Nov 2022 14:51:42 +0000
4
4
Subject: Add support for VNICs
@@ -17,10 +17,10 @@ https://github.com/TritonDataCenter/illumos-kvm-cmd
17
17
create mode 100644 net/vnic.c
18
18
19
19
diff --git a/meson.build b/meson.build
20
- index fbda17c987..830b105d5e 100644
20
+ index 147097c652..8486d5d9e0 100644
21
21
--- a/meson.build
22
22
+++ b/meson.build
23
- @@ -751 ,7 +751 ,8 @@ elif host_os == 'darwin'
23
+ @@ -818 ,7 +818 ,8 @@ elif host_os == 'darwin'
24
24
elif host_os == 'sunos'
25
25
socket = [cc.find_library('socket'),
26
26
cc.find_library('nsl'),
@@ -44,10 +44,10 @@ index be53794582..07e413c3de 100644
44
44
#ifdef CONFIG_NETMAP
45
45
int net_init_netmap(const Netdev *netdev, const char *name,
46
46
diff --git a/net/hub.c b/net/hub.c
47
- index 4c8a469a50..61ff327dc6 100644
47
+ index 496a3d3b4b..dc7038746b 100644
48
48
--- a/net/hub.c
49
49
+++ b/net/hub.c
50
- @@ -316 ,6 +316 ,7 @@ void net_hub_check_clients(void)
50
+ @@ -291 ,6 +291 ,7 @@ void net_hub_check_clients(void)
51
51
case NET_CLIENT_DRIVER_STREAM:
52
52
case NET_CLIENT_DRIVER_DGRAM:
53
53
case NET_CLIENT_DRIVER_VDE:
@@ -56,7 +56,7 @@ index 4c8a469a50..61ff327dc6 100644
56
56
has_host_dev = 1;
57
57
break;
58
58
diff --git a/net/meson.build b/net/meson.build
59
- index e0cd71470e..28e29375aa 100644
59
+ index bb97b4dcbe..a396d91d3e 100644
60
60
--- a/net/meson.build
61
61
+++ b/net/meson.build
62
62
@@ -52,7 +52,7 @@ elif host_os == 'linux'
@@ -69,10 +69,10 @@ index e0cd71470e..28e29375aa 100644
69
69
system_ss.add(files('tap.c', 'tap-stub.c'))
70
70
endif
71
71
diff --git a/net/net.c b/net/net.c
72
- index fc1125111c..b80e016d97 100644
72
+ index 7ef6885876..9babc4459e 100644
73
73
--- a/net/net.c
74
74
+++ b/net/net.c
75
- @@ -1253 ,6 +1253 ,7 @@ static int (* const net_client_init_fun[NET_CLIENT_DRIVER__MAX])(
75
+ @@ -1247 ,6 +1247 ,7 @@ static int (* const net_client_init_fun[NET_CLIENT_DRIVER__MAX])(
76
76
#ifdef CONFIG_VDE
77
77
[NET_CLIENT_DRIVER_VDE] = net_init_vde,
78
78
#endif
@@ -361,7 +361,7 @@ index 0000000000..481661b583
361
361
+ return (0);
362
362
+ }
363
363
diff --git a/qapi/net.json b/qapi/net.json
364
- index 87fc0d0b28..510191da55 100644
364
+ index 2739a2f423..d6fb755dca 100644
365
365
--- a/qapi/net.json
366
366
+++ b/qapi/net.json
367
367
@@ -364,6 +364,17 @@
@@ -382,7 +382,7 @@ index 87fc0d0b28..510191da55 100644
382
382
##
383
383
# @NetdevBridgeOptions:
384
384
#
385
- @@ -723 ,7 +734 ,7 @@
385
+ @@ -734 ,7 +745 ,7 @@
386
386
{ 'enum': 'NetClientDriver',
387
387
'data': [ 'none', 'nic', 'user', 'tap', 'l2tpv3', 'socket', 'stream',
388
388
'dgram', 'vde', 'bridge', 'hubport', 'netmap', 'vhost-user',
@@ -391,7 +391,7 @@ index 87fc0d0b28..510191da55 100644
391
391
{ 'name': 'af-xdp', 'if': 'CONFIG_AF_XDP' },
392
392
{ 'name': 'vmnet-host', 'if': 'CONFIG_VMNET' },
393
393
{ 'name': 'vmnet-shared', 'if': 'CONFIG_VMNET' },
394
- @@ -752 ,6 +763 ,7 @@
394
+ @@ -763 ,6 +774 ,7 @@
395
395
'stream': 'NetdevStreamOptions',
396
396
'dgram': 'NetdevDgramOptions',
397
397
'vde': 'NetdevVdeOptions',
0 commit comments