Searched refs:dscp (Results 1 – 3 of 3) sorted by relevance
277 static inline void net_ipv4_set_dscp(uint8_t *tos, uint8_t dscp) in net_ipv4_set_dscp() argument280 *tos |= (dscp << NET_IPV4_DSCP_OFFSET) & NET_IPV4_DSCP_MASK; in net_ipv4_set_dscp()288 static inline uint8_t net_ipv4_dscp_to_priority(uint8_t dscp) in net_ipv4_dscp_to_priority() argument290 return dscp >> 3; in net_ipv4_dscp_to_priority()
539 static inline void net_ipv6_set_dscp(uint8_t *tc, uint8_t dscp) in net_ipv6_set_dscp() argument542 *tc |= (dscp << NET_IPV6_DSCP_OFFSET) & NET_IPV6_DSCP_MASK; in net_ipv6_set_dscp()550 static inline uint8_t net_ipv6_dscp_to_priority(uint8_t dscp) in net_ipv6_dscp_to_priority() argument552 return dscp >> 3; in net_ipv6_dscp_to_priority()
551 static inline void net_pkt_set_ip_dscp(struct net_pkt *pkt, uint8_t dscp) in net_pkt_set_ip_dscp() argument554 pkt->ip_dscp = dscp; in net_pkt_set_ip_dscp()557 ARG_UNUSED(dscp); in net_pkt_set_ip_dscp()