cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

switchdev.h (459B)


      1/* SPDX-License-Identifier: GPL-2.0+ */
      2/* Copyright (c) 2019 Quantenna Communications. All rights reserved. */
      3
      4#ifndef QTNFMAC_SWITCHDEV_H_
      5#define QTNFMAC_SWITCHDEV_H_
      6
      7#include <linux/skbuff.h>
      8
      9#ifdef CONFIG_NET_SWITCHDEV
     10
     11static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
     12{
     13	skb->offload_fwd_mark = 1;
     14}
     15
     16#else
     17
     18static inline void qtnfmac_switch_mark_skb_flooded(struct sk_buff *skb)
     19{
     20}
     21
     22#endif
     23
     24#endif /* QTNFMAC_SWITCHDEV_H_ */