Home
last modified time | relevance | path

Searched refs:skbdata (Results 1 – 7 of 7) sorted by relevance

/linux/net/ife/
A Dife.c98 static bool __ife_tlv_meta_valid(const unsigned char *skbdata, in __ife_tlv_meta_valid() argument
104 if (unlikely(skbdata + sizeof(*tlv) > ifehdr_end)) in __ife_tlv_meta_valid()
107 tlv = (const struct meta_tlvhdr *)skbdata; in __ife_tlv_meta_valid()
118 if (unlikely(skbdata + NLA_ALIGN(tlvlen) > ifehdr_end)) in __ife_tlv_meta_valid()
131 if (!__ife_tlv_meta_valid(skbdata, ifehdr_end)) in ife_tlv_meta_decode()
134 tlv = (struct meta_tlvhdr *)skbdata; in ife_tlv_meta_decode()
141 return skbdata + sizeof(struct meta_tlvhdr); in ife_tlv_meta_decode()
145 void *ife_tlv_meta_next(void *skbdata) in ife_tlv_meta_next() argument
147 struct meta_tlvhdr *tlv = (struct meta_tlvhdr *) skbdata; in ife_tlv_meta_next()
152 return skbdata + tlvlen; in ife_tlv_meta_next()
[all …]
/linux/include/net/
A Dife.h14 void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype,
16 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
19 void *ife_tlv_meta_next(void *skbdata);
33 static inline void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, in ife_tlv_meta_decode() argument
39 static inline int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, in ife_tlv_meta_encode() argument
45 static inline void *ife_tlv_meta_next(void *skbdata) in ife_tlv_meta_next() argument
/linux/net/sched/
A Dact_meta_skbprio.c26 static int skbprio_encode(struct sk_buff *skb, void *skbdata, in skbprio_encode() argument
31 return ife_encode_meta_u32(ifeprio, skbdata, e); in skbprio_encode()
A Dact_meta_mark.c21 static int skbmark_encode(struct sk_buff *skb, void *skbdata, in skbmark_encode() argument
26 return ife_encode_meta_u32(ifemark, skbdata, e); in skbmark_encode()
A Dact_meta_skbtcindex.c21 static int skbtcindex_encode(struct sk_buff *skb, void *skbdata, in skbtcindex_encode() argument
26 return ife_encode_meta_u16(ifetc_index, skbdata, e); in skbtcindex_encode()
A Dact_ife.c44 int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi) in ife_encode_meta_u16() argument
57 return ife_tlv_meta_encode(skbdata, mi->metaid, 2, &edata); in ife_encode_meta_u16()
88 int ife_encode_meta_u32(u32 metaval, void *skbdata, struct tcf_meta_info *mi) in ife_encode_meta_u32() argument
101 return ife_tlv_meta_encode(skbdata, mi->metaid, 4, &edata); in ife_encode_meta_u32()
/linux/include/net/tc_act/
A Dtc_ife.h59 int ife_encode_meta_u32(u32 metaval, void *skbdata, struct tcf_meta_info *mi);
62 int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi);

Completed in 7 milliseconds