18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 28c2ecf20Sopenharmony_ci/* Copyright (c) 2019 Quantenna Communications. All rights reserved. */ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef QTNFMAC_SWITCHDEV_H_ 58c2ecf20Sopenharmony_ci#define QTNFMAC_SWITCHDEV_H_ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#include <linux/skbuff.h> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifdef CONFIG_NET_SWITCHDEV 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistatic inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb) 128c2ecf20Sopenharmony_ci{ 138c2ecf20Sopenharmony_ci skb->offload_fwd_mark = 1; 148c2ecf20Sopenharmony_ci} 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#else 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_cistatic inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb) 198c2ecf20Sopenharmony_ci{ 208c2ecf20Sopenharmony_ci} 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#endif 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* QTNFMAC_SWITCHDEV_H_ */ 25