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>
Showing
- hw/net/e1000e_core.c 35 additions, 25 deletionshw/net/e1000e_core.c
- hw/net/net_rx_pkt.c 25 additions, 23 deletionshw/net/net_rx_pkt.c
- hw/net/net_rx_pkt.h 2 additions, 3 deletionshw/net/net_rx_pkt.h
- hw/net/trace-events 4 additions, 4 deletionshw/net/trace-events
- hw/net/virtio-net.c 46 additions, 23 deletionshw/net/virtio-net.c
- hw/net/vmxnet3.c 14 additions, 8 deletionshw/net/vmxnet3.c
- include/net/eth.h 7 additions, 1 deletioninclude/net/eth.h
- net/eth.c 14 additions, 12 deletionsnet/eth.c
Loading
Please register or sign in to comment