net/eth: Introduce EthL4HdrProto
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 23 Feb 2023 10:50:49 +0000 (19:50 +0900)
committerJason Wang <jasowang@redhat.com>
Fri, 10 Mar 2023 07:35:38 +0000 (15:35 +0800)
commit65f474bbae9a33b08707084efb95701e187f79e3
tree2f52c41e376d2c32cfdcb6cccd0618229e3b043d
parent5fb7d149953f469381a11e486d66dc56af2c0f21
net/eth: Introduce EthL4HdrProto

igb, a new network device emulation, will need SCTP checksum offloading.
Currently eth_get_protocols() has a bool parameter for each protocol
currently it supports, but there will be a bit too many parameters if
we add yet another protocol.

Introduce an enum type, EthL4HdrProto to represent all L4 protocols
eth_get_protocols() support with one parameter.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e_core.c
hw/net/net_rx_pkt.c
hw/net/net_rx_pkt.h
hw/net/trace-events
hw/net/virtio-net.c
hw/net/vmxnet3.c
include/net/eth.h
net/eth.c