net: Add promiscuous mode support

Allow user to set the network interface into promiscuous mode
and then receive all the network packets that are received by
that interface.

Fixes #7595

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
diff --git a/include/net/net_if.h b/include/net/net_if.h
index 104b694..7415514 100644
--- a/include/net/net_if.h
+++ b/include/net/net_if.h
@@ -414,11 +414,7 @@
  *
  * @return verdict about the packet
  */
-static inline enum net_verdict net_if_recv_data(struct net_if *iface,
-						struct net_pkt *pkt)
-{
-	return net_if_l2(iface)->recv(iface, pkt);
-}
+enum net_verdict net_if_recv_data(struct net_if *iface, struct net_pkt *pkt);
 
 /**
  * @brief Get link layer header size for this network interface