Reviewed-by: Balasubramanian Manoharan <bala.manoha...@linaro.org>
On 28 March 2017 at 16:37, Petri Savolainen <petri.savolai...@linaro.org> wrote: > Checksum insertion has pktio interface level configuration > options. Per packet override is needed for example when > L4 checksumming is enabled and application forwards packets. > Forwarded packets need to maintain original, end-to-end checksum > value. > > Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> > --- > include/odp/api/spec/packet.h | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h > index 92c35ae..5439f23 100644 > --- a/include/odp/api/spec/packet.h > +++ b/include/odp/api/spec/packet.h > @@ -1366,6 +1366,32 @@ uint32_t odp_packet_l4_offset(odp_packet_t pkt); > int odp_packet_l4_offset_set(odp_packet_t pkt, uint32_t offset); > > /** > + * Layer 3 checksum insertion override > + * > + * Override checksum insertion configuration per packet. This per packet > setting > + * overrides a higher level configuration for checksum insertion into a L3 > + * header during packet output processing. > + * > + * @param pkt Packet handle > + * @param l3 0: do not insert L3 checksum > + * 1: insert L3 checksum > + */ > +void odp_packet_l3_chksum_insert(odp_packet_t pkt, int l3); > + > +/** > + * Layer 4 checksum insertion override > + * > + * Override checksum insertion configuration per packet. This per packet > setting > + * overrides a higher level configuration for checksum insertion into a L4 > + * header during packet output processing. > + * > + * @param pkt Packet handle > + * @param l4 0: do not insert L4 checksum > + * 1: insert L4 checksum > + */ > +void odp_packet_l4_chksum_insert(odp_packet_t pkt, int l4); > + > +/** > * Packet flow hash value > * > * Returns the hash generated from the packet header. Use > -- > 2.8.1 >