#ifndef __NET_IFE_H #define __NET_IFE_H #include #include #include #include #if IS_ENABLED(CONFIG_NET_IFE) void *ife_encode(struct sk_buff *skb, u16 metalen); void *ife_decode(struct sk_buff *skb, u16 *metalen); void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, u16 *totlen); int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval); void *ife_tlv_meta_next(void *skbdata); #else static inline void *ife_encode(struct sk_buff *skb, u16 metalen) { return NULL; } static inline void *ife_decode(struct sk_buff *skb, u16 *metalen) { return NULL; } static inline void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, u16 *totlen) { return NULL; } static inline int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) { return 0; } static inline void *ife_tlv_meta_next(void *skbdata) { return NULL; } #endif #endif /* __NET_IFE_H */ name='h' onchange='this.form.submit();'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Lagerwall <ross.lagerwall@citrix.com>2016-12-09 17:10:22 +0000
committerJuergen Gross <jgross@suse.com>2016-12-12 15:22:22 +0100
commit709613ad2b3c9eaeb2a3e24284b7c8feffc17326 (patch)
tree8715afd7b68201c7180126ced3b3f4065882c8b5 /include/net/sctp
parent581d21a2d02a798ee34e56dbfa13f891b3a90c30 (diff)
xen/balloon: Only mark a page as managed when it is released
Only mark a page as managed when it is released back to the allocator. This ensures that the managed page count does not get falsely increased when a VM is running. Correspondingly change it so that pages are marked as unmanaged after getting them from the allocator. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'include/net/sctp')