platform/x86: peaq-wmi: Blacklist Lenovo ideapad 700-15ISK
[linux/fpc-iii.git] / include / net / ife.h
blob2d87d6898b0a99f13ad66c31c53eebbb34e09b86
1 #ifndef __NET_IFE_H
2 #define __NET_IFE_H
4 #include <linux/etherdevice.h>
5 #include <linux/rtnetlink.h>
6 #include <linux/module.h>
7 #include <uapi/linux/ife.h>
9 #if IS_ENABLED(CONFIG_NET_IFE)
11 void *ife_encode(struct sk_buff *skb, u16 metalen);
12 void *ife_decode(struct sk_buff *skb, u16 *metalen);
14 void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, u16 *totlen);
15 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
16 const void *dval);
18 void *ife_tlv_meta_next(void *skbdata);
20 #else
22 static inline void *ife_encode(struct sk_buff *skb, u16 metalen)
24 return NULL;
27 static inline void *ife_decode(struct sk_buff *skb, u16 *metalen)
29 return NULL;
32 static inline void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen,
33 u16 *totlen)
35 return NULL;
38 static inline int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
39 const void *dval)
41 return 0;
44 static inline void *ife_tlv_meta_next(void *skbdata)
46 return NULL;
49 #endif
51 #endif /* __NET_IFE_H */