1220422Sgabor/* SPDX-License-Identifier: GPL-2.0 */ 2220422Sgabor/* Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 3210389Sgabor */ 4210389Sgabor 5210389Sgabor#ifndef DRIVERS_NET_ETHERNET_TI_AM65_CPSW_SWITCHDEV_H_ 6211496Sdes#define DRIVERS_NET_ETHERNET_TI_AM65_CPSW_SWITCHDEV_H_ 7210389Sgabor 8322625Skevans#include <linux/skbuff.h> 9210389Sgabor 10210389Sgabor#if IS_ENABLED(CONFIG_TI_K3_AM65_CPSW_SWITCHDEV) 11210389Sgaborstatic inline void am65_cpsw_nuss_set_offload_fwd_mark(struct sk_buff *skb, bool val) 12210389Sgabor{ 13210389Sgabor skb->offload_fwd_mark = val; 14210389Sgabor} 15210389Sgabor 16210389Sgaborint am65_cpsw_switchdev_register_notifiers(struct am65_cpsw_common *cpsw); 17210389Sgaborvoid am65_cpsw_switchdev_unregister_notifiers(struct am65_cpsw_common *cpsw); 18210389Sgabor#else 19210389Sgaborstatic inline int am65_cpsw_switchdev_register_notifiers(struct am65_cpsw_common *cpsw) 20210389Sgabor{ 21210389Sgabor return -EOPNOTSUPP; 22210389Sgabor} 23210389Sgabor 24210389Sgaborstatic inline void am65_cpsw_switchdev_unregister_notifiers(struct am65_cpsw_common *cpsw) 25210389Sgabor{ 26210389Sgabor} 27210389Sgabor 28210389Sgaborstatic inline void am65_cpsw_nuss_set_offload_fwd_mark(struct sk_buff *skb, bool val) 29210389Sgabor{ 30210389Sgabor} 31210389Sgabor 32210389Sgabor#endif 33210389Sgabor 34210389Sgabor#endif /* DRIVERS_NET_ETHERNET_TI_AM65_CPSW_SWITCHDEV_H_ */ 35210389Sgabor