Skip to content
Snippets Groups Projects
Commit dac2359c authored by Subhash Kumar Katnapally's avatar Subhash Kumar Katnapally
Browse files

[qca-nss-drv] Dummy registration functions for gre


Added Dummy registration functions to enable wifi compilation
for when GRE is disabled in qca-nss-drv.

Change-Id: I524f10e8a2e60698ec0ae8664698f1815c2ec9f8
Signed-off-by: default avatarSubhash Kumar Katnapally <quic_skatnapa@quicinc.com>
parent b69af347
No related branches found
No related tags found
No related merge requests found
/*
****************************************************************************
* Copyright (c) 2017-2019, 2021, The Linux Foundation. All rights reserved.
*
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all copies.
......@@ -445,7 +448,17 @@ typedef void (*nss_gre_pkt_callback_t)(struct net_device *netdev, struct sk_buff
* @return
* None.
*/
#ifdef NSS_DRV_GRE_ENABLE
extern void nss_gre_register_pkt_callback(nss_gre_pkt_callback_t cb);
#else
static inline void nss_gre_register_pkt_callback(nss_gre_pkt_callback_t cb)
{
/*
* Dummy registration function for external modules when GRE
* is disabled
*/
}
#endif
/**
* nss_gre_unregister_pkt_callback
......@@ -457,7 +470,17 @@ extern void nss_gre_register_pkt_callback(nss_gre_pkt_callback_t cb);
* @return
* None.
*/
#ifdef NSS_DRV_GRE_ENABLE
extern void nss_gre_unregister_pkt_callback(void);
#else
static inline void nss_gre_unregister_pkt_callback(void)
{
/*
* Dummy registration function for external modules when GRE
* is disabled
*/
}
#endif
/**
* nss_gre_stats_unregister_notifier
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment