/linux/net/netfilter/ |
A D | xt_DSCP.c | 31 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg() local 33 if (dscp != dinfo->dscp) { in dscp_tg() 39 dinfo->dscp << XT_DSCP_SHIFT); in dscp_tg() 49 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg6() local 51 if (dscp != dinfo->dscp) { in dscp_tg6() 57 dinfo->dscp << XT_DSCP_SHIFT); in dscp_tg6() 66 if (info->dscp > XT_DSCP_MAX) in dscp_tg_check()
|
A D | xt_dscp.c | 28 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt() local 30 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt() 37 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt6() local 39 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt6() 46 if (info->dscp > XT_DSCP_MAX) in dscp_mt_check()
|
/linux/include/net/ |
A D | inet_ecn.h | 120 static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner) in ipv4_copy_dscp() argument 122 dscp &= ~INET_ECN_MASK; in ipv4_copy_dscp() 123 ipv4_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv4_copy_dscp() 166 static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner) in ipv6_copy_dscp() argument 168 dscp &= ~INET_ECN_MASK; in ipv6_copy_dscp() 169 ipv6_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv6_copy_dscp()
|
A D | erspan.h | 163 u8 dscp, cos; in tos_to_cos() local 165 dscp = tos >> 2; in tos_to_cos() 166 cos = dscp >> 3; in tos_to_cos()
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | pedit_dsfield.sh | 189 local dscp 191 for dscp in 0 1 2 3 32 61 62 63; do 269 local dscp 271 for dscp in 0 1 2 3 32 61 62 63; do
|
A D | lib.sh | 991 local dscp; 994 dscp=$((base + prio)) 995 __icmp_capture_add_del $add_del $((dscp + 100)) "" $dev \ 1022 local dscp=$((base + prio)) 1023 local t=$(tc_rule_stats_get $dev $((dscp + 100))) 1024 echo "[$dscp]=$t "
|
/linux/net/sched/ |
A D | act_ctinfo.c | 34 u8 dscp, newdscp; in tcf_ctinfo_dscp_set() local 41 dscp = ipv4_get_dsfield(ip_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set() 42 if (dscp != newdscp) { in tcf_ctinfo_dscp_set() 54 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set() 55 if (dscp != newdscp) { in tcf_ctinfo_dscp_set()
|
A D | sch_cake.c | 1562 u8 dscp; in cake_handle_diffserv() local 1571 dscp = ipv4_get_dsfield((struct iphdr *)buf) >> 2; in cake_handle_diffserv() 1573 if (wash && dscp) { in cake_handle_diffserv() 1583 return dscp; in cake_handle_diffserv() 1591 dscp = ipv6_get_dsfield((struct ipv6hdr *)buf) >> 2; in cake_handle_diffserv() 1593 if (wash && dscp) { in cake_handle_diffserv() 1603 return dscp; in cake_handle_diffserv() 1620 u8 dscp; in cake_select_tin() local 1629 dscp = cake_handle_diffserv(skb, wash); in cake_select_tin() 1644 dscp = cake_handle_diffserv(skb, wash); in cake_select_tin() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | qos_dscp_router.sh | 181 local dscp=$((prio << 2)) # ICMP Request ingress DSCP 192 ${PING} -Q $dscp ${sip:+-I $sip} $dip \ 219 log_test "DSCP rewrite: $dscp-(prio $prio2)-$dscp2-(prio $prio3)-$dscp3"
|
/linux/drivers/staging/r8188eu/os_dep/ |
A D | os_intfs.c | 270 unsigned int dscp; in rtw_classify8021d() local 282 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d() 288 return dscp >> 5; in rtw_classify8021d() 307 unsigned int dscp; in rtw_recv_select_queue() local 317 dscp = piphdr->tos & 0xfc; in rtw_recv_select_queue() 318 priority = dscp >> 5; in rtw_recv_select_queue()
|
/linux/net/6lowpan/ |
A 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/include/uapi/linux/netfilter/ |
A D | xt_DSCP.h | 19 __u8 dscp; member
|
A D | xt_dscp.h | 22 __u8 dscp; member
|
/linux/drivers/staging/rtl8723bs/os_dep/ |
A D | os_intfs.c | 322 unsigned int dscp; in rtw_classify8021d() local 334 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d() 340 return dscp >> 5; in rtw_classify8021d() 361 unsigned int dscp; in rtw_recv_select_queue() local 373 dscp = piphdr->tos & 0xfc; in rtw_recv_select_queue() 375 priority = dscp >> 5; in rtw_recv_select_queue()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_dcb.h | 39 u8 dscp; member
|
/linux/net/sctp/ |
A D | protocol.c | 428 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_get_dst() 429 tos = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_get_dst() 1055 __u8 dscp = inet->tos; in sctp_v4_xmit() local 1061 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_xmit() 1062 dscp = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_xmit() 1070 return __ip_queue_xmit(sk, skb, &t->fl, dscp); in sctp_v4_xmit() 1084 fl4->daddr, dscp, ip4_dst_hoplimit(dst), df, in sctp_v4_xmit()
|
/linux/drivers/staging/rtl8192u/ieee80211/ |
A D | rtl819x_TS.h | 42 u8 dscp; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | mlx5_ifc_dr_ste_v1.h | 276 u8 dscp[0x6]; member 322 u8 dscp[0x6]; member
|
A D | mlx5_ifc_dr.h | 260 u8 dscp[0x6]; member 347 u8 dscp[0x6]; member
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | core_acl_flex_actions.c | 1498 MLXSW_ITEM32(afa, qos, dscp, 0x04, 0, 6); 1537 enum mlxsw_afa_qos_dscp_cmd dscp_cmd, u8 dscp) in mlxsw_afa_qos_dscp_pack() argument 1540 mlxsw_afa_qos_dscp_set(payload, dscp); in mlxsw_afa_qos_dscp_pack() 1553 bool set_dscp, u8 dscp, in __mlxsw_afa_block_append_qos_dsfield() argument 1570 dscp); in __mlxsw_afa_block_append_qos_dsfield() 1589 u8 dscp, struct netlink_ext_ack *extack) in mlxsw_afa_block_append_qos_dscp() argument 1592 true, dscp, in mlxsw_afa_block_append_qos_dscp()
|
A D | core_acl_flex_actions.h | 82 u8 dscp, struct netlink_ext_ack *extack);
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_dcb_nl.c | 782 int dscp, offset; in ice_dcbnl_setapp() local 784 dscp = (i * max_tc) + j; in ice_dcbnl_setapp() 787 new_cfg->dscp_map[dscp] = i; in ice_dcbnl_setapp() 790 new_cfg->dscp_map[dscp + offset] = i; in ice_dcbnl_setapp()
|
/linux/net/wireless/ |
A D | util.c | 837 unsigned int dscp; in cfg80211_classify8021d() local 862 dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc; in cfg80211_classify8021d() 865 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc; in cfg80211_classify8021d() 888 unsigned int i, tmp_dscp = dscp >> 2; in cfg80211_classify8021d() 891 if (tmp_dscp == qos_map->dscp_exception[i].dscp) { in cfg80211_classify8021d() 906 ret = dscp >> 5; in cfg80211_classify8021d()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_dcbnl.c | 65 static int mlx5e_set_dscp2prio(struct mlx5e_priv *priv, u8 dscp, u8 prio); 1175 static int mlx5e_set_dscp2prio(struct mlx5e_priv *priv, u8 dscp, u8 prio) in mlx5e_set_dscp2prio() argument 1179 err = mlx5_set_dscp2prio(priv->mdev, dscp, prio); in mlx5e_set_dscp2prio() 1183 priv->dcbx_dp.dscp2prio[dscp] = prio; in mlx5e_set_dscp2prio()
|
A D | port.c | 1016 int mlx5_set_dscp2prio(struct mlx5_core_dev *mdev, u8 dscp, u8 prio) in mlx5_set_dscp2prio() argument 1040 qpdpm_dscp = MLX5_ADDR_OF(qpdpm_reg, in, dscp[dscp]); in mlx5_set_dscp2prio() 1075 qpdpm_dscp = MLX5_ADDR_OF(qpdpm_reg, out, dscp[i]); in mlx5_query_dscp2prio()
|