xsk: include XDP meta data in AF_XDP frames
authorBjörn Töpel <bjorn.topel@intel.com>
Thu, 30 Aug 2018 13:12:48 +0000 (15:12 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 30 Aug 2018 13:25:40 +0000 (15:25 +0200)
commit18baed2684b02f752b5d800bb113e99730e1d24b
treea7573a7bc65269404e8aa2b13cc7c9d40b1bba45
parent56b48c6a6008d9d5d023b7dd002913c8715dc3a0
xsk: include XDP meta data in AF_XDP frames

Previously, the AF_XDP (XDP_DRV/XDP_SKB copy-mode) ingress logic did
not include XDP meta data in the data buffers copied out to the user
application.

In this commit, we check if meta data is available, and if so, it is
prepended to the frame.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xsk.c