net: offload: Remove CONFIG_NET_OFFLOAD from header file

The extra check for CONFIG_NET_OFFLOAD is not needed as it
prevents documentation generation for this API.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2019-02-22 11:11:22 +02:00 committed by Anas Nashif
parent e0a8990ea7
commit 82616a62d6
2 changed files with 7 additions and 12 deletions

View file

@ -523,19 +523,16 @@ void net_if_queue_tx(struct net_if *iface, struct net_pkt *pkt);
*
* @return True if IP offlining is active, false otherwise.
*/
static inline bool net_if_is_ip_offloaded(struct net_if *iface)
{
#if defined(CONFIG_NET_OFFLOAD)
static inline bool net_if_is_ip_offloaded(struct net_if *iface)
{
return (iface->if_dev->offload != NULL);
}
#else
static inline bool net_if_is_ip_offloaded(struct net_if *iface)
{
ARG_UNUSED(iface);
return false;
}
#endif
}
/**
* @brief Return the IP offload plugin
@ -544,12 +541,14 @@ static inline bool net_if_is_ip_offloaded(struct net_if *iface)
*
* @return NULL if there is no offload plugin defined, valid pointer otherwise
*/
#if defined(CONFIG_NET_OFFLOAD)
static inline struct net_offload *net_if_offload(struct net_if *iface)
{
#if defined(CONFIG_NET_OFFLOAD)
return iface->if_dev->offload;
}
#else
return NULL;
#endif
}
/**
* @brief Get an network interface's link address

View file

@ -19,8 +19,6 @@
* @{
*/
#if defined(CONFIG_NET_OFFLOAD)
#include <net/buf.h>
#include <net/net_ip.h>
#include <net/net_context.h>
@ -432,8 +430,6 @@ static inline int net_offload_put(struct net_if *iface,
}
#endif
#endif /* CONFIG_NET_OFFLOAD */
/**
* @}
*/