diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2018-04-17 16:45:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-17 16:50:28 +0200 |
commit | 70280ed91cb8acb43e8fd7a8094840846c172ac5 (patch) | |
tree | 7a12a407a5166ffcf81610d51678dbf50335155d /include/net/xdp.h | |
parent | virtio_net: convert to use generic xdp_frame and xdp_return_frame API (diff) | |
download | linux-70280ed91cb8acb43e8fd7a8094840846c172ac5.tar.xz linux-70280ed91cb8acb43e8fd7a8094840846c172ac5.zip |
bpf: cpumap convert to use generic xdp_frame
The generic xdp_frame format, was inspired by the cpumap own internal
xdp_pkt format. It is now time to convert it over to the generic
xdp_frame format. The cpumap needs one extra field dev_rx.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xdp.h')
-rw-r--r-- | include/net/xdp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/xdp.h b/include/net/xdp.h index 756c42811e78..ea3773f94f65 100644 --- a/include/net/xdp.h +++ b/include/net/xdp.h @@ -67,6 +67,7 @@ struct xdp_frame { * while mem info is valid on remote CPU. */ struct xdp_mem_info mem; + struct net_device *dev_rx; /* used by cpumap */ }; /* Convert xdp_buff to xdp_frame */ |