[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 20/34] e1000x: Alter the signature of e1000x_is_vlan_packet
From: |
Akihiko Odaki |
Subject: |
[PATCH v6 20/34] e1000x: Alter the signature of e1000x_is_vlan_packet |
Date: |
Thu, 23 Feb 2023 19:20:04 +0900 |
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>
---
hw/net/e1000x_common.c | 2 +-
hw/net/e1000x_common.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/net/e1000x_common.c b/hw/net/e1000x_common.c
index b3bbf31582..e6387dde53 100644
--- a/hw/net/e1000x_common.c
+++ b/hw/net/e1000x_common.c
@@ -47,7 +47,7 @@ bool e1000x_rx_ready(PCIDevice *d, uint32_t *mac)
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);
bool res = (eth_proto == vet);
diff --git a/hw/net/e1000x_common.h b/hw/net/e1000x_common.h
index b991d814b1..86a31b69f8 100644
--- a/hw/net/e1000x_common.h
+++ b/hw/net/e1000x_common.h
@@ -178,7 +178,7 @@ uint32_t e1000x_rxbufsize(uint32_t rctl);
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);
--
2.39.1
- [PATCH v6 10/34] e1000: Use memcpy to intialize registers, (continued)
- [PATCH v6 10/34] e1000: Use memcpy to intialize registers, Akihiko Odaki, 2023/02/23
- [PATCH v6 11/34] e1000e: Use memcpy to intialize registers, Akihiko Odaki, 2023/02/23
- [PATCH v6 12/34] e1000e: Remove pending interrupt flags, Akihiko Odaki, 2023/02/23
- [PATCH v6 13/34] e1000e: Improve software reset, Akihiko Odaki, 2023/02/23
- [PATCH v6 14/34] e1000: Configure ResettableClass, Akihiko Odaki, 2023/02/23
- [PATCH v6 15/34] e1000e: Configure ResettableClass, Akihiko Odaki, 2023/02/23
- [PATCH v6 16/34] e1000e: Introduce e1000_rx_desc_union, Akihiko Odaki, 2023/02/23
- [PATCH v6 17/34] e1000e: Set MII_ANER_NWAY, Akihiko Odaki, 2023/02/23
- [PATCH v6 18/34] e1000e: Remove extra pointer indirection, Akihiko Odaki, 2023/02/23
- [PATCH v6 19/34] net: Check L4 header size, Akihiko Odaki, 2023/02/23
- [PATCH v6 20/34] e1000x: Alter the signature of e1000x_is_vlan_packet,
Akihiko Odaki <=
- [PATCH v6 21/34] net: Strip virtio-net header when dumping, Akihiko Odaki, 2023/02/23
- [PATCH v6 22/34] hw/net/net_tx_pkt: Automatically determine if virtio-net header is used, Akihiko Odaki, 2023/02/23
- [PATCH v6 23/34] hw/net/net_rx_pkt: Remove net_rx_pkt_has_virt_hdr, Akihiko Odaki, 2023/02/23
- [PATCH v6 24/34] e1000e: Perform software segmentation for loopback, Akihiko Odaki, 2023/02/23
- [PATCH v6 26/34] hw/net/net_tx_pkt: Check the payload length, Akihiko Odaki, 2023/02/23
- [PATCH v6 28/34] MAINTAINERS: Add Akihiko Odaki as a e1000e reviewer, Akihiko Odaki, 2023/02/23
- [PATCH v6 29/34] MAINTAINERS: Add e1000e test files, Akihiko Odaki, 2023/02/23
- [PATCH v6 25/34] hw/net/net_tx_pkt: Implement TCP segmentation, Akihiko Odaki, 2023/02/23
- [PATCH v6 27/34] e1000e: Do not assert when MSI-X is disabled later, Akihiko Odaki, 2023/02/23
- [PATCH v6 30/34] e1000e: Combine rx traces, Akihiko Odaki, 2023/02/23