/Linux-v4.19/net/netfilter/ |
D | xt_DSCP.c | 34 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg() local 36 if (dscp != dinfo->dscp) { in dscp_tg() 42 dinfo->dscp << XT_DSCP_SHIFT); in dscp_tg() 52 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg6() local 54 if (dscp != dinfo->dscp) { in dscp_tg6() 60 dinfo->dscp << XT_DSCP_SHIFT); in dscp_tg6() 69 if (info->dscp > XT_DSCP_MAX) in dscp_tg_check()
|
D | xt_dscp.c | 31 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt() local 33 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt() 40 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt6() local 42 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt6() 49 if (info->dscp > XT_DSCP_MAX) in dscp_mt_check()
|
/Linux-v4.19/include/net/ |
D | inet_ecn.h | 107 static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner) in ipv4_copy_dscp() argument 109 dscp &= ~INET_ECN_MASK; in ipv4_copy_dscp() 110 ipv4_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv4_copy_dscp() 137 static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner) in ipv6_copy_dscp() argument 139 dscp &= ~INET_ECN_MASK; in ipv6_copy_dscp() 140 ipv6_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv6_copy_dscp()
|
D | erspan.h | 148 u8 dscp, cos; in tos_to_cos() local 150 dscp = tos >> 2; in tos_to_cos() 151 cos = dscp >> 3; in tos_to_cos()
|
/Linux-v4.19/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_dscp_router.sh | 55 local dscp; 163 local dscp=$((prio << 2)) # ICMP Request ingress DSCP 173 ${PING} -Q $dscp ${sip:+-I $sip} $dip \ 200 log_test "DSCP rewrite: $dscp-(prio $prio2)-$dscp2-(prio $prio3)-$dscp3"
|
D | qos_dscp_bridge.sh | 39 local dscp;
|
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/ |
D | os_intfs.c | 226 unsigned int dscp; in rtw_classify8021d() local 238 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d() 244 return dscp >> 5; in rtw_classify8021d() 265 unsigned int dscp; in rtw_recv_select_queue() local 275 dscp = piphdr->tos & 0xfc; in rtw_recv_select_queue() 276 priority = dscp >> 5; in rtw_recv_select_queue()
|
/Linux-v4.19/include/uapi/linux/netfilter/ |
D | xt_DSCP.h | 19 __u8 dscp; member
|
D | xt_dscp.h | 22 __u8 dscp; member
|
/Linux-v4.19/tools/testing/selftests/net/forwarding/ |
D | lib.sh | 661 local dscp; 664 dscp=$((base + prio)) 665 __icmp_capture_add_del $add_del $((dscp + 100)) "" $dev \ 692 local dscp=$((base + prio)) 693 local t=$(tc_rule_stats_get $dev $((dscp + 100))) 694 echo "[$dscp]=$t "
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_dcb.h | 37 u8 dscp; member
|
/Linux-v4.19/net/6lowpan/ |
D | iphc.c | 517 u8 dscp = tf[0] & 0x3f; in lowpan_iphc_tf_set_dscp() local 520 hdr->priority |= ((dscp & 0x3c) >> 2); in lowpan_iphc_tf_set_dscp() 522 hdr->flow_lbl[0] |= ((dscp & 0x03) << 6); in lowpan_iphc_tf_set_dscp() 993 u8 dscp, ecn; in lowpan_iphc_get_tc() local 998 dscp = (hdr->priority << 2) | ((hdr->flow_lbl[0] & 0xc0) >> 6); in lowpan_iphc_get_tc() 1002 pr_debug("ecn 0x%02x dscp 0x%02x\n", ecn >> 4, dscp); in lowpan_iphc_get_tc() 1004 return (ecn << 2) | dscp; in lowpan_iphc_get_tc()
|
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/ |
D | rtl819x_TS.h | 42 u8 dscp; member
|
/Linux-v4.19/net/sctp/ |
D | protocol.c | 431 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_get_dst() 432 tos = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_get_dst() 977 __u8 dscp = inet->tos; in sctp_v4_xmit() local 983 if (transport->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_xmit() 984 dscp = transport->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_xmit() 991 return __ip_queue_xmit(&inet->sk, skb, &transport->fl, dscp); in sctp_v4_xmit()
|
D | associola.c | 119 asoc->dscp = sp->dscp; in sctp_association_init() 663 peer->dscp = asoc->dscp; in sctp_assoc_add_peer()
|
D | socket.c | 2691 trans->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2692 trans->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2698 t->dscp = params->spp_dscp & in sctp_apply_peer_addr_params() 2700 t->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2702 asoc->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2703 asoc->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2705 sp->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2706 sp->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 5663 if (trans->dscp & SCTP_DSCP_SET_MASK) { in sctp_getsockopt_peer_addr_params() 5664 params.spp_dscp = trans->dscp & SCTP_DSCP_VAL_MASK; in sctp_getsockopt_peer_addr_params() [all …]
|
D | ipv6.c | 218 if (transport->dscp & SCTP_DSCP_SET_MASK) in sctp_v6_xmit() 219 tclass = transport->dscp & SCTP_DSCP_VAL_MASK; in sctp_v6_xmit()
|
/Linux-v4.19/net/wireless/ |
D | util.c | 713 unsigned int dscp; in cfg80211_classify8021d() local 733 dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc; in cfg80211_classify8021d() 736 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc; in cfg80211_classify8021d() 758 unsigned int i, tmp_dscp = dscp >> 2; in cfg80211_classify8021d() 761 if (tmp_dscp == qos_map->dscp_exception[i].dscp) in cfg80211_classify8021d() 772 return dscp >> 5; in cfg80211_classify8021d()
|
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/ |
D | os_intfs.c | 384 unsigned int dscp; in rtw_classify8021d() local 396 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d() 402 return dscp >> 5; in rtw_classify8021d() 424 unsigned int dscp; in rtw_recv_select_queue() local 436 dscp = piphdr->tos & 0xfc; in rtw_recv_select_queue() 438 priority = dscp >> 5; in rtw_recv_select_queue()
|
/Linux-v4.19/include/linux/mlx5/ |
D | port.h | 191 int mlx5_set_dscp2prio(struct mlx5_core_dev *mdev, u8 dscp, u8 prio);
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_dcbnl.c | 57 static int mlx5e_set_dscp2prio(struct mlx5e_priv *priv, u8 dscp, u8 prio); 1150 static int mlx5e_set_dscp2prio(struct mlx5e_priv *priv, u8 dscp, u8 prio) in mlx5e_set_dscp2prio() argument 1154 err = mlx5_set_dscp2prio(priv->mdev, dscp, prio); in mlx5e_set_dscp2prio() 1158 priv->dcbx_dp.dscp2prio[dscp] = prio; in mlx5e_set_dscp2prio()
|
D | port.c | 1053 int mlx5_set_dscp2prio(struct mlx5_core_dev *mdev, u8 dscp, u8 prio) in mlx5_set_dscp2prio() argument 1077 qpdpm_dscp = MLX5_ADDR_OF(qpdpm_reg, in, dscp[dscp]); in mlx5_set_dscp2prio() 1112 qpdpm_dscp = MLX5_ADDR_OF(qpdpm_reg, out, dscp[i]); in mlx5_query_dscp2prio()
|
/Linux-v4.19/include/net/sctp/ |
D | structs.h | 198 __u8 dscp; member 903 __u8 dscp; member 1800 __u8 dscp; member
|
/Linux-v4.19/net/sched/ |
D | sch_cake.c | 1527 u8 dscp; in cake_handle_diffserv() local 1531 dscp = ipv4_get_dsfield(ip_hdr(skb)) >> 2; in cake_handle_diffserv() 1532 if (wash && dscp) in cake_handle_diffserv() 1534 return dscp; in cake_handle_diffserv() 1537 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> 2; in cake_handle_diffserv() 1538 if (wash && dscp) in cake_handle_diffserv() 1540 return dscp; in cake_handle_diffserv()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | reg.h | 3356 MLXSW_ITEM32(reg, qrwe, dscp, 0x04, 1, 1); 3451 mlxsw_reg_qpdsm_prio_pack(char *payload, unsigned short prio, u8 dscp) in mlxsw_reg_qpdsm_prio_pack() argument 3454 mlxsw_reg_qpdsm_prio_entry_color0_dscp_set(payload, prio, dscp); in mlxsw_reg_qpdsm_prio_pack() 3456 mlxsw_reg_qpdsm_prio_entry_color1_dscp_set(payload, prio, dscp); in mlxsw_reg_qpdsm_prio_pack() 3458 mlxsw_reg_qpdsm_prio_entry_color2_dscp_set(payload, prio, dscp); in mlxsw_reg_qpdsm_prio_pack() 3506 mlxsw_reg_qpdpm_dscp_pack(char *payload, unsigned short dscp, u8 prio) in mlxsw_reg_qpdpm_dscp_pack() argument 3508 mlxsw_reg_qpdpm_dscp_entry_e_set(payload, dscp, 1); in mlxsw_reg_qpdpm_dscp_pack() 3509 mlxsw_reg_qpdpm_dscp_entry_prio_set(payload, dscp, prio); in mlxsw_reg_qpdpm_dscp_pack()
|