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 10:50:28 -0400 |
commit | 70280ed91cb8acb43e8fd7a8094840846c172ac5 (patch) | |
tree | 7a12a407a5166ffcf81610d51678dbf50335155d /include | |
parent | cac320c850efb25480cd0f71383b84ec61c0e138 (diff) | |
download | linux-stable-70280ed91cb8acb43e8fd7a8094840846c172ac5.tar.gz linux-stable-70280ed91cb8acb43e8fd7a8094840846c172ac5.tar.bz2 linux-stable-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')
-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 */ |