net/hyperv: fix wrong length of mac address
This patch fixed wrong mac length, it should be ETH_ALEN, also replaced the hardcode 6 in hyperv_net.h Signed-off-by: Amos Kong <kongjianjun@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c1acd7090f
commit
9a4c831ebb
@@ -84,7 +84,7 @@ struct hv_netvsc_packet {
|
||||
};
|
||||
|
||||
struct netvsc_device_info {
|
||||
unsigned char mac_adr[6];
|
||||
unsigned char mac_adr[ETH_ALEN];
|
||||
bool link_state; /* 0 - link up, 1 - link down */
|
||||
int ring_size;
|
||||
};
|
||||
|
Reference in New Issue
Block a user