mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
net: Rename VLANClientState to NetClientState
The vlan feature is no longer part of net core. Rename VLANClientState to NetClientState because net clients are not explicitly associated with a vlan at all, instead they have a peer net client to which they are connected. This patch is a mechanical search-and-replace except for a few whitespace fixups where changing VLANClientState to NetClientState misaligned whitespace. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
94878994dc
commit
4e68f7a081
50 changed files with 282 additions and 283 deletions
20
net/tap.h
20
net/tap.h
|
@ -33,18 +33,18 @@
|
|||
#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
|
||||
|
||||
int net_init_tap(const NetClientOptions *opts, const char *name,
|
||||
VLANClientState *peer);
|
||||
NetClientState *peer);
|
||||
|
||||
int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required);
|
||||
|
||||
ssize_t tap_read_packet(int tapfd, uint8_t *buf, int maxlen);
|
||||
|
||||
int tap_has_ufo(VLANClientState *vc);
|
||||
int tap_has_vnet_hdr(VLANClientState *vc);
|
||||
int tap_has_vnet_hdr_len(VLANClientState *vc, int len);
|
||||
void tap_using_vnet_hdr(VLANClientState *vc, int using_vnet_hdr);
|
||||
void tap_set_offload(VLANClientState *vc, int csum, int tso4, int tso6, int ecn, int ufo);
|
||||
void tap_set_vnet_hdr_len(VLANClientState *vc, int len);
|
||||
int tap_has_ufo(NetClientState *vc);
|
||||
int tap_has_vnet_hdr(NetClientState *vc);
|
||||
int tap_has_vnet_hdr_len(NetClientState *vc, int len);
|
||||
void tap_using_vnet_hdr(NetClientState *vc, int using_vnet_hdr);
|
||||
void tap_set_offload(NetClientState *vc, int csum, int tso4, int tso6, int ecn, int ufo);
|
||||
void tap_set_vnet_hdr_len(NetClientState *vc, int len);
|
||||
|
||||
int tap_set_sndbuf(int fd, const NetdevTapOptions *tap);
|
||||
int tap_probe_vnet_hdr(int fd);
|
||||
|
@ -53,12 +53,12 @@ int tap_probe_has_ufo(int fd);
|
|||
void tap_fd_set_offload(int fd, int csum, int tso4, int tso6, int ecn, int ufo);
|
||||
void tap_fd_set_vnet_hdr_len(int fd, int len);
|
||||
|
||||
int tap_get_fd(VLANClientState *vc);
|
||||
int tap_get_fd(NetClientState *vc);
|
||||
|
||||
struct vhost_net;
|
||||
struct vhost_net *tap_get_vhost_net(VLANClientState *vc);
|
||||
struct vhost_net *tap_get_vhost_net(NetClientState *vc);
|
||||
|
||||
int net_init_bridge(const NetClientOptions *opts, const char *name,
|
||||
VLANClientState *peer);
|
||||
NetClientState *peer);
|
||||
|
||||
#endif /* QEMU_NET_TAP_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue