mbuf: use 2 bytes for port and nb segments
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 4 Apr 2017 16:28:05 +0000 (18:28 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Apr 2017 09:30:29 +0000 (11:30 +0200)
commit97cb466d65c9d65280ff601fb8dfcc02136b74b2
tree4f4e9ffde7c810dd59c5335ad35513d65ed9a5c0
parentdc448dc4609fb82655283c8e51692e33a01d8fe7
mbuf: use 2 bytes for port and nb segments

Change the size of m->port and m->nb_segs to 16 bits. It is now possible
to reference a port identifier larger than 256 and have a mbuf chain
larger than 256 segments.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
app/test-pmd/csumonly.c
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
lib/librte_mbuf/rte_mbuf.h