mbuf_offload: fix header for C++
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 5 Feb 2016 16:51:19 +0000 (17:51 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 21 Feb 2016 10:47:57 +0000 (11:47 +0100)
commit43cb19a52632c404994bd25e4bf7b771665742eb
tree472ad4a263e16d945d644cf71c2c5a60f4eb66ce
parentfa2f06b70e167de82040a3783e6033a23abdddf5
mbuf_offload: fix header for C++

When built in a C++ application, the include fails for 2 reasons:

rte_mbuf_offload.h:128:24: error:
invalid conversion from ‘void*’ to ‘rte_pktmbuf_offload_pool_private*’ [-fpermissive]
    rte_mempool_get_priv(mpool);
                        ^
The cast must be explicit for C++.

rte_mbuf_offload.h:304:1: error: expected declaration before ‘}’ token

There was a closing brace for __cplusplus but not an opening one.

Fixes: 78c8709b5ddb ("mbuf_offload: introduce library to attach offloads to mbuf")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_mbuf_offload/rte_mbuf_offload.h