2016-10-14 14:02, Kulasek, TomaszX: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-10-13 19:36, Tomasz Kulasek: > > > +/** > > > + * Fix pseudo header checksum for TSO and non-TSO tcp/udp packets > > before > > > + * hardware tx checksum. > > > + * For non-TSO tcp/udp packets full pseudo-header checksum is counted > > and set. > > > + * For TSO the IP payload length is not included. > > > + */ > > > +static inline int > > > +rte_phdr_cksum_fix(struct rte_mbuf *m) > > > > You probably don't need this function since the recent improvements from > > Olivier. > > Do you mean this improvement: "net: add function to calculate a checksum in a > mbuf" > http://dpdk.org/dev/patchwork/patch/16542/ > > I see only full raw checksum computation on mbuf in Olivier patches, while > this function counts only pseudo-header checksum to be used with tx offload.
OK. Please check what exists already in librte_net (especially rte_ip.h) and try to re-use code if possible. Thanks