From: David Ahern <dsahern@kernel•org>
To: netdev@vger•kernel.org
Cc: davem@davemloft•net, kuba@kernel•org, David Ahern <dsahern@gmail•com>
Subject: [PATCH net-next] net: Remove unneeded export of a couple of xdp generic functions
Date: Thu, 20 Feb 2020 22:03:13 -0700 [thread overview]
Message-ID: <20200221050313.68171-1-dsahern@kernel.org> (raw)
From: David Ahern <dsahern@gmail•com>
generic_xdp_tx and xdp_do_generic_redirect are only used by builtin
code, so remove the EXPORT_SYMBOL_GPL for them.
Signed-off-by: David Ahern <dsahern@gmail•com>
---
net/core/dev.c | 1 -
net/core/filter.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index a6316b336128..0aaacfbe07ab 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4649,7 +4649,6 @@ void generic_xdp_tx(struct sk_buff *skb, struct bpf_prog *xdp_prog)
kfree_skb(skb);
}
}
-EXPORT_SYMBOL_GPL(generic_xdp_tx);
static DEFINE_STATIC_KEY_FALSE(generic_xdp_needed_key);
diff --git a/net/core/filter.c b/net/core/filter.c
index c180871e606d..f17631c80f8b 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -3626,7 +3626,6 @@ int xdp_do_generic_redirect(struct net_device *dev, struct sk_buff *skb,
_trace_xdp_redirect_err(dev, xdp_prog, index, err);
return err;
}
-EXPORT_SYMBOL_GPL(xdp_do_generic_redirect);
BPF_CALL_2(bpf_xdp_redirect, u32, ifindex, u64, flags)
{
--
2.17.1
next reply other threads:[~2020-02-21 5:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-21 5:03 David Ahern [this message]
2020-02-22 0:02 ` [PATCH net-next] net: Remove unneeded export of a couple of xdp generic functions David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200221050313.68171-1-dsahern@kernel.org \
--to=dsahern@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=dsahern@gmail$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox