e1000x: Alter the signature of e1000x_is_vlan_packet

e1000x_is_vlan_packet() had a pointer to uint8_t as a parameter, but
it does not have to be uint8_t. Change the type to void *.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
Akihiko Odaki 2023-02-23 19:20:04 +09:00 committed by Jason Wang
parent f9a9eb16e2
commit d921db0ae9
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ bool e1000x_rx_ready(PCIDevice *d, uint32_t *mac)
return true; return true;
} }
bool e1000x_is_vlan_packet(const uint8_t *buf, uint16_t vet) bool e1000x_is_vlan_packet(const void *buf, uint16_t vet)
{ {
uint16_t eth_proto = lduw_be_p(&PKT_GET_ETH_HDR(buf)->h_proto); uint16_t eth_proto = lduw_be_p(&PKT_GET_ETH_HDR(buf)->h_proto);
bool res = (eth_proto == vet); bool res = (eth_proto == vet);

View file

@ -178,7 +178,7 @@ uint32_t e1000x_rxbufsize(uint32_t rctl);
bool e1000x_rx_ready(PCIDevice *d, uint32_t *mac); bool e1000x_rx_ready(PCIDevice *d, uint32_t *mac);
bool e1000x_is_vlan_packet(const uint8_t *buf, uint16_t vet); bool e1000x_is_vlan_packet(const void *buf, uint16_t vet);
bool e1000x_rx_group_filter(uint32_t *mac, const uint8_t *buf); bool e1000x_rx_group_filter(uint32_t *mac, const uint8_t *buf);