Olivier Matz 4a96e8b652 mbuf: allow to clone an indirect mbuf
Remove one limitation of rte_pktmbuf_attach(): "mbuf we're attaching to
must be direct".

Now, when we attach to an indirect mbuf:
- copy the all relevant fields (addr, len, offload, ...) as before
- get the pointer to the mbuf that embeds the data buffer (direct mbuf),
  and increase the reference counter of this one.

When detaching the mbuf, we can retrieve this direct mbuf as the pointer
is determined from the buffer address.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-04-28 11:35:53 +02:00
2015-04-28 11:34:10 +02:00
2015-04-13 21:48:27 +02:00
2015-04-28 11:35:53 +02:00
2015-04-20 14:37:22 +02:00
2015-04-03 16:13:45 +02:00
2015-04-13 22:50:09 +02:00
2015-03-23 14:29:31 +01:00
2013-03-07 10:57:42 +01:00
2013-07-25 14:43:06 +02:00
2015-04-13 22:50:09 +02:00
2014-06-11 00:29:34 +02:00
Description
No description provided
128 MiB
Languages
C 99.1%
Meson 0.5%
Python 0.2%
Shell 0.1%