Home
last modified time | relevance | path

Searched refs:dscp (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.4/net/netfilter/
Dxt_DSCP.c31 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()
Dxt_dscp.c28 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-v5.4/include/net/
Dinet_ecn.h107 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()
Derspan.h148 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-v5.4/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_router.sh169 local dscp=$((prio << 2)) # ICMP Request ingress DSCP
180 ${PING} -Q $dscp ${sip:+-I $sip} $dip \
207 log_test "DSCP rewrite: $dscp-(prio $prio2)-$dscp2-(prio $prio3)-$dscp3"
/Linux-v5.4/net/sched/
Dact_ctinfo.c34 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()
Dsch_cake.c1521 u8 dscp; in cake_handle_diffserv() local
1530 dscp = ipv4_get_dsfield(ip_hdr(skb)) >> 2; in cake_handle_diffserv()
1531 if (wash && dscp) in cake_handle_diffserv()
1533 return dscp; in cake_handle_diffserv()
1541 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> 2; in cake_handle_diffserv()
1542 if (wash && dscp) in cake_handle_diffserv()
1544 return dscp; in cake_handle_diffserv()
1560 u8 dscp; in cake_select_tin() local
1565 dscp = cake_handle_diffserv(skb, in cake_select_tin()
1581 tin = q->tin_index[dscp]; in cake_select_tin()
/Linux-v5.4/drivers/staging/rtl8188eu/os_dep/
Dos_intfs.c227 unsigned int dscp; in rtw_classify8021d() local
239 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d()
245 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-v5.4/include/uapi/linux/netfilter/
Dxt_DSCP.h19 __u8 dscp; member
Dxt_dscp.h22 __u8 dscp; member
/Linux-v5.4/tools/testing/selftests/net/forwarding/
Dlib.sh721 local dscp;
724 dscp=$((base + prio))
725 __icmp_capture_add_del $add_del $((dscp + 100)) "" $dev \
752 local dscp=$((base + prio))
753 local t=$(tc_rule_stats_get $dev $((dscp + 100)))
754 echo "[$dscp]=$t "
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.h37 u8 dscp; member
/Linux-v5.4/net/6lowpan/
Diphc.c517 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-v5.4/drivers/staging/rtl8192u/ieee80211/
Drtl819x_TS.h42 u8 dscp; member
/Linux-v5.4/net/sctp/
Dprotocol.c415 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_get_dst()
416 tos = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_get_dst()
962 __u8 dscp = inet->tos; in sctp_v4_xmit() local
968 if (transport->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_xmit()
969 dscp = transport->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_xmit()
976 return __ip_queue_xmit(&inet->sk, skb, &transport->fl, dscp); in sctp_v4_xmit()
Dassociola.c103 asoc->dscp = sp->dscp; in sctp_association_init()
644 peer->dscp = asoc->dscp; in sctp_assoc_add_peer()
Dsocket.c2588 trans->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params()
2589 trans->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params()
2595 t->dscp = params->spp_dscp & in sctp_apply_peer_addr_params()
2597 t->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params()
2599 asoc->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params()
2600 asoc->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params()
2602 sp->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params()
2603 sp->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params()
5974 if (trans->dscp & SCTP_DSCP_SET_MASK) { in sctp_getsockopt_peer_addr_params()
5975 params.spp_dscp = trans->dscp & SCTP_DSCP_VAL_MASK; in sctp_getsockopt_peer_addr_params()
[all …]
/Linux-v5.4/drivers/staging/rtl8723bs/os_dep/
Dos_intfs.c376 unsigned int dscp; in rtw_classify8021d() local
388 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d()
394 return dscp >> 5; in rtw_classify8021d()
415 unsigned int dscp; in rtw_recv_select_queue() local
427 dscp = piphdr->tos & 0xfc; in rtw_recv_select_queue()
429 priority = dscp >> 5; in rtw_recv_select_queue()
/Linux-v5.4/net/wireless/
Dutil.c740 unsigned int dscp; in cfg80211_classify8021d() local
765 dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc; in cfg80211_classify8021d()
768 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc; in cfg80211_classify8021d()
791 unsigned int i, tmp_dscp = dscp >> 2; in cfg80211_classify8021d()
794 if (tmp_dscp == qos_map->dscp_exception[i].dscp) { in cfg80211_classify8021d()
809 ret = dscp >> 5; in cfg80211_classify8021d()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dmlx5_ifc_dr.h350 u8 dscp[0x6]; member
437 u8 dscp[0x6]; member
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c57 static int mlx5e_set_dscp2prio(struct mlx5e_priv *priv, u8 dscp, u8 prio);
1148 static int mlx5e_set_dscp2prio(struct mlx5e_priv *priv, u8 dscp, u8 prio) in mlx5e_set_dscp2prio() argument
1152 err = mlx5_set_dscp2prio(priv->mdev, dscp, prio); in mlx5e_set_dscp2prio()
1156 priv->dcbx_dp.dscp2prio[dscp] = prio; in mlx5e_set_dscp2prio()
Dport.c917 int mlx5_set_dscp2prio(struct mlx5_core_dev *mdev, u8 dscp, u8 prio) in mlx5_set_dscp2prio() argument
941 qpdpm_dscp = MLX5_ADDR_OF(qpdpm_reg, in, dscp[dscp]); in mlx5_set_dscp2prio()
976 qpdpm_dscp = MLX5_ADDR_OF(qpdpm_reg, out, dscp[i]); in mlx5_query_dscp2prio()
/Linux-v5.4/include/linux/mlx5/
Dport.h199 int mlx5_set_dscp2prio(struct mlx5_core_dev *mdev, u8 dscp, u8 prio);
/Linux-v5.4/include/net/sctp/
Dstructs.h185 __u8 dscp; member
893 __u8 dscp; member
1798 __u8 dscp; member
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dreg.h3647 MLXSW_ITEM32(reg, qrwe, dscp, 0x04, 1, 1);
3742 mlxsw_reg_qpdsm_prio_pack(char *payload, unsigned short prio, u8 dscp) in mlxsw_reg_qpdsm_prio_pack() argument
3745 mlxsw_reg_qpdsm_prio_entry_color0_dscp_set(payload, prio, dscp); in mlxsw_reg_qpdsm_prio_pack()
3747 mlxsw_reg_qpdsm_prio_entry_color1_dscp_set(payload, prio, dscp); in mlxsw_reg_qpdsm_prio_pack()
3749 mlxsw_reg_qpdsm_prio_entry_color2_dscp_set(payload, prio, dscp); in mlxsw_reg_qpdsm_prio_pack()
3797 mlxsw_reg_qpdpm_dscp_pack(char *payload, unsigned short dscp, u8 prio) in mlxsw_reg_qpdpm_dscp_pack() argument
3799 mlxsw_reg_qpdpm_dscp_entry_e_set(payload, dscp, 1); in mlxsw_reg_qpdpm_dscp_pack()
3800 mlxsw_reg_qpdpm_dscp_entry_prio_set(payload, dscp, prio); in mlxsw_reg_qpdpm_dscp_pack()
9872 MLXSW_ITEM32(reg, tnqdr, dscp, 0x04, 0, 6);

12