Go to file
Andy Green 466de6d5d8 net: explicit cast of IP checksum to 16-bit
GCC 8.1 warned:

In function 'rte_raw_cksum_mbuf':
rte_ip.h:225:22: warning: conversion from 'uint32_t'
{aka 'unsigned int'} to 'uint16_t' {aka 'short unsigned int'}
may change value [-Wconversion]
    tmp = rte_bswap16(tmp);
                      ^~~

In function 'rte_ipv4_cksum':
rte_ip.h:256:35: warning: conversion from 'int' to 'uint16_t'
{aka 'short unsigned int'} may change value [-Wconversion]
  return (cksum == 0xffff) ? cksum : ~cksum;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~

rte_ip.h:332:9: warning: conversion from 'uint32_t'
{aka 'unsigned int'} to 'uint16_t' {aka 'short unsigned int'}
may change value [-Wconversion]
  return cksum;
         ^~~~~

In function 'rte_ipv6_udptcp_cksum':
rte_ip.h:421:9: warning: conversion from 'uint32_t' {aka 'unsigned int'}
to 'uint16_t' {aka 'short unsigned int'} may change value [-Wconversion]
  return cksum;
         ^~~~~

Fixes: 6006818cfb ("net: new checksum functions")
Fixes: 4199fdea60 ("mbuf: generic support for TCP segmentation offload")
Cc: stable@dpdk.org

Signed-off-by: Andy Green <andy@warmcat.com>
2018-05-21 00:21:30 +02:00
app app/bbdev: use strcpy for allocated string 2018-05-14 23:32:23 +02:00
buildtools buildtools: output build failure reason to stderr 2018-02-08 22:25:37 +01:00
config net/mlx5: add Bluefield device id 2018-05-17 12:31:42 +02:00
devtools devtools: provide more generic grep in git check 2018-05-14 23:32:23 +02:00
doc doc: add runtime queue setup in release notes 2018-05-17 19:06:29 +02:00
drivers net/sfc: fix errno if flow API RSS action parse fails 2018-05-17 19:44:23 +02:00
examples examples/vhost: fix header copy to discontiguous desc buffer 2018-05-14 22:31:03 +01:00
kernel kni: fix possible mbuf leaks and speed up port release 2018-05-13 23:58:20 +02:00
lib net: explicit cast of IP checksum to 16-bit 2018-05-21 00:21:30 +02:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk bpf: add ability to load eBPF program from ELF object file 2018-05-12 00:35:20 +02:00
pkg version: 18.02.0 2018-02-14 19:11:02 +01:00
test ethdev: add probing finish function 2018-05-14 22:31:53 +01:00
usertools usertools: add Cavium TIM as an event device 2018-04-16 11:11:06 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: add compression driver and ISA-L PMD guides 2018-05-10 17:46:20 +01:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS maintainers: fix responsibility of flow API bits 2018-05-17 19:06:23 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt net/mvpp2: add to meson build 2018-04-19 14:10:44 +02:00
meson.build version: 18.05-rc4 2018-05-15 22:38:39 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org