mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -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
|
@ -507,12 +507,12 @@ static int eth_match_groupaddr(struct fs_eth *eth, const unsigned char *sa)
|
|||
return match;
|
||||
}
|
||||
|
||||
static int eth_can_receive(VLANClientState *nc)
|
||||
static int eth_can_receive(NetClientState *nc)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
static ssize_t eth_receive(VLANClientState *nc, const uint8_t *buf, size_t size)
|
||||
static ssize_t eth_receive(NetClientState *nc, const uint8_t *buf, size_t size)
|
||||
{
|
||||
unsigned char sa_bcast[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
struct fs_eth *eth = DO_UPCAST(NICState, nc, nc)->opaque;
|
||||
|
@ -549,7 +549,7 @@ static int eth_tx_push(void *opaque, unsigned char *buf, int len, bool eop)
|
|||
return len;
|
||||
}
|
||||
|
||||
static void eth_set_link(VLANClientState *nc)
|
||||
static void eth_set_link(NetClientState *nc)
|
||||
{
|
||||
struct fs_eth *eth = DO_UPCAST(NICState, nc, nc)->opaque;
|
||||
D(printf("%s %d\n", __func__, nc->link_down));
|
||||
|
@ -566,7 +566,7 @@ static const MemoryRegionOps eth_ops = {
|
|||
}
|
||||
};
|
||||
|
||||
static void eth_cleanup(VLANClientState *nc)
|
||||
static void eth_cleanup(NetClientState *nc)
|
||||
{
|
||||
struct fs_eth *eth = DO_UPCAST(NICState, nc, nc)->opaque;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue