Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/net/
Dinet_ecn.h122 static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner) in ipv4_copy_dscp() argument
124 dscp &= ~INET_ECN_MASK; in ipv4_copy_dscp()
125 ipv4_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv4_copy_dscp()
168 static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner) in ipv6_copy_dscp() argument
170 dscp &= ~INET_ECN_MASK; in ipv6_copy_dscp()
171 ipv6_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv6_copy_dscp()
Derspan.h163 u8 dscp, cos; in tos_to_cos() local
165 dscp = tos >> 2; in tos_to_cos()
166 cos = dscp >> 3; in tos_to_cos()
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dpedit_dsfield.sh189 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
Dlib.sh906 local dscp;
909 dscp=$((base + prio))
910 __icmp_capture_add_del $add_del $((dscp + 100)) "" $dev \
937 local dscp=$((base + prio))
938 local t=$(tc_rule_stats_get $dev $((dscp + 100)))
939 echo "[$dscp]=$t "
/kernel/linux/linux-5.10/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.c1562 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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_router.sh181 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"
/kernel/linux/linux-5.10/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()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/
Dxt_DSCP.h11 __u8 dscp; member
Dxt_dscp.h13 __u8 dscp; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/
Dxt_DSCP.h24 __u8 dscp; member
Dxt_dscp.h26 __u8 dscp; member
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/
Dxt_DSCP.h19 __u8 dscp; member
Dxt_dscp.h22 __u8 dscp; member
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.h37 u8 dscp; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/
Drtl819x_TS.h42 u8 dscp; member
/kernel/linux/linux-5.10/net/sctp/
Dprotocol.c428 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()
984 __u8 dscp = inet->tos; in sctp_v4_xmit() local
990 if (transport->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_xmit()
991 dscp = transport->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_xmit()
998 return __ip_queue_xmit(&inet->sk, skb, &transport->fl, dscp); in sctp_v4_xmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_actions.c1498 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()
Dcore_acl_flex_actions.h76 u8 dscp, struct netlink_ext_ack *extack);
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/
Dos_intfs.c356 unsigned int dscp; in rtw_classify8021d() local
368 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d()
374 return dscp >> 5; in rtw_classify8021d()
395 unsigned int dscp; in rtw_recv_select_queue() local
407 dscp = piphdr->tos & 0xfc; in rtw_recv_select_queue()
409 priority = dscp >> 5; in rtw_recv_select_queue()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dmlx5_ifc_dr.h351 u8 dscp[0x6]; member
438 u8 dscp[0x6]; member
/kernel/linux/linux-5.10/net/wireless/
Dutil.c835 unsigned int dscp; in cfg80211_classify8021d() local
860 dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc; in cfg80211_classify8021d()
863 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc; in cfg80211_classify8021d()
886 unsigned int i, tmp_dscp = dscp >> 2; in cfg80211_classify8021d()
889 if (tmp_dscp == qos_map->dscp_exception[i].dscp) { in cfg80211_classify8021d()
904 ret = dscp >> 5; in cfg80211_classify8021d()

12