diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-11-03 21:56:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-05 14:26:18 +0100 |
commit | f4e63525ee35f9c02e9f51f90571718363e9a9a9 (patch) | |
tree | 313ed1e8d4707a59809861852ea141e1e112135b /net/core/rtnetlink.c | |
parent | mISDN: l1oip_core: replace _manual_ swap with swap macro (diff) | |
download | linux-f4e63525ee35f9c02e9f51f90571718363e9a9a9.tar.xz linux-f4e63525ee35f9c02e9f51f90571718363e9a9a9.zip |
net: bpf: rename ndo_xdp to ndo_bpf
ndo_xdp is a control path callback for setting up XDP in the
driver. We can reuse it for other forms of communication
between the eBPF stack and the drivers. Rename the callback
and associated structures and definitions.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 8a8c51937edf..dc5ad84ac096 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -1270,10 +1270,10 @@ static u8 rtnl_xdp_attached_mode(struct net_device *dev, u32 *prog_id) *prog_id = generic_xdp_prog->aux->id; return XDP_ATTACHED_SKB; } - if (!ops->ndo_xdp) + if (!ops->ndo_bpf) return XDP_ATTACHED_NONE; - return __dev_xdp_attached(dev, ops->ndo_xdp, prog_id); + return __dev_xdp_attached(dev, ops->ndo_bpf, prog_id); } static int rtnl_xdp_fill(struct sk_buff *skb, struct net_device *dev) |