diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2022-07-18 11:21:05 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-07-25 14:03:48 +0000 |
commit | 8636a320413c12d1747c695ac594ca643ac539ba (patch) | |
tree | 9c0ba086b2f92827a0a32585f3b52a839e574796 /extras/libmemif/examples/common/icmp_proto.h | |
parent | c8cd079a0004b75892a08c7cac9a48b39e24e580 (diff) |
libmemif: fix chain buffer support
Type: fix
This patch fixes chain buffer support as transmit side
missing to set the flag to the descriptor in case of
chain buffers.
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I73ff11be69a388f14fea39a19272d8eb76148fba
Diffstat (limited to 'extras/libmemif/examples/common/icmp_proto.h')
-rw-r--r-- | extras/libmemif/examples/common/icmp_proto.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/extras/libmemif/examples/common/icmp_proto.h b/extras/libmemif/examples/common/icmp_proto.h index e346a3b13f7..1371146cd40 100644 --- a/extras/libmemif/examples/common/icmp_proto.h +++ b/extras/libmemif/examples/common/icmp_proto.h @@ -24,17 +24,12 @@ typedef enum ICMPR_FLOW_MODE_IP, } icmpr_flow_mode_t; -int resolve_packet (void *in_pck, ssize_t in_size, void *out_pck, - uint32_t *out_size, uint8_t ip_addr[4], - uint8_t hw_addr[6]); - /* resolve packet in place */ -int resolve_packet_zero_copy (void *pck, uint32_t *size, uint8_t ip_addr[4], - uint8_t hw_addr[6]); +int resolve_packet (void *pck, uint32_t *size, uint8_t ip_addr[4], + uint8_t hw_addr[6]); /* resolve packet in place and add eth encap */ -int resolve_packet_zero_copy_add_encap (void **pck, uint32_t *size, - uint8_t ip_addr[4]); +int resolve_packet_with_encap (void **pck, uint32_t *size, uint8_t ip_addr[4]); int generate_packet (void *pck, uint32_t *size, uint8_t saddr[4], uint8_t daddr[4], uint8_t hw_daddr[6], uint32_t seq); |