Home
last modified time | relevance | path

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

12

/Linux-v4.19/net/netfilter/
Dxt_DSCP.c34 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()
Dxt_dscp.c31 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/
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-v4.19/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_router.sh55 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"
Dqos_dscp_bridge.sh39 local dscp;
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/
Dos_intfs.c226 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/
Dxt_DSCP.h19 __u8 dscp; member
Dxt_dscp.h22 __u8 dscp; member
/Linux-v4.19/tools/testing/selftests/net/forwarding/
Dlib.sh661 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/
Dbnxt_dcb.h37 u8 dscp; member
/Linux-v4.19/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-v4.19/drivers/staging/rtl8192u/ieee80211/
Drtl819x_TS.h42 u8 dscp; member
/Linux-v4.19/net/sctp/
Dprotocol.c431 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()
Dassociola.c119 asoc->dscp = sp->dscp; in sctp_association_init()
663 peer->dscp = asoc->dscp; in sctp_assoc_add_peer()
Dsocket.c2691 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 …]
Dipv6.c218 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/
Dutil.c713 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/
Dos_intfs.c384 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/
Dport.h191 int mlx5_set_dscp2prio(struct mlx5_core_dev *mdev, u8 dscp, u8 prio);
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c57 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()
Dport.c1053 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/
Dstructs.h198 __u8 dscp; member
903 __u8 dscp; member
1800 __u8 dscp; member
/Linux-v4.19/net/sched/
Dsch_cake.c1527 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/
Dreg.h3356 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()

12