Skip to content

Commit

Permalink
net: Export inet_offloads and inet6_offloads
Browse files Browse the repository at this point in the history
Want to be able to use these in foo-over-udp offloads, etc.

Signed-off-by: Tom Herbert <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Tom Herbert authored and davem330 committed Sep 19, 2014
1 parent 4e2840e commit ce3e028
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

const struct net_protocol __rcu *inet_protos[MAX_INET_PROTOS] __read_mostly;
const struct net_offload __rcu *inet_offloads[MAX_INET_PROTOS] __read_mostly;
EXPORT_SYMBOL(inet_offloads);

int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol)
{
Expand Down
1 change: 1 addition & 0 deletions net/ipv6/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ EXPORT_SYMBOL(inet6_del_protocol);
#endif

const struct net_offload __rcu *inet6_offloads[MAX_INET_PROTOS] __read_mostly;
EXPORT_SYMBOL(inet6_offloads);

int inet6_add_offload(const struct net_offload *prot, unsigned char protocol)
{
Expand Down

0 comments on commit ce3e028

Please sign in to comment.