Home
last modified time | relevance | path

Searched refs:ecn (Results 1 – 25 of 27) sorted by relevance

12

/linux/tools/testing/selftests/net/forwarding/
H A Dpedit_dsfield.sh210 local ecn
212 for ecn in 0 1 2 3; do
214 "ip dsfield set $ecn retain 0x03" \
215 ip "ip_tos $((124 | $ecn))" \
290 local ecn
292 for ecn in 0 1 2 3; do
294 "ip6 traffic_class set $ecn retain 0x3" \
295 ipv6 "ip_tos $((124 | $ecn))" \
/linux/net/ipv6/netfilter/
H A Dnf_conntrack_reasm.c176 u8 ecn; in nf_ct_frag6_queue() local
194 ecn = ip6_frag_ecn(ipv6_hdr(skb)); in nf_ct_frag6_queue()
272 fq->ecn |= ecn; in nf_ct_frag6_queue()
322 u8 ecn; in nf_ct_frag6_reasm() local
326 ecn = ip_frag_ecn_table[fq->ecn]; in nf_ct_frag6_reasm()
327 if (unlikely(ecn == 0xff)) in nf_ct_frag6_reasm()
358 ipv6_change_dsfield(ipv6_hdr(skb), 0xff, ecn); in nf_ct_frag6_reasm()
/linux/net/ipv6/
H A Dreassembly.c116 u8 ecn; in ip6_frag_queue() local
137 ecn = ip6_frag_ecn(ipv6_hdr(skb)); in ip6_frag_queue()
203 fq->ecn |= ecn; in ip6_frag_queue()
263 u8 ecn; in ip6_frag_reasm() local
267 ecn = ip_frag_ecn_table[fq->ecn]; in ip6_frag_reasm()
268 if (unlikely(ecn == 0xff)) in ip6_frag_reasm()
297 ipv6_change_dsfield(ipv6_hdr(skb), 0xff, ecn); in ip6_frag_reasm()
/linux/samples/bpf/
H A Dhbm_kern.h79 short ecn; member
121 pkti->ecn = (ip6h->flow_lbl[0] >> 4) & INET_ECN_MASK; in hbm_get_pkt_info()
125 pkti->ecn = iph.tos & INET_ECN_MASK; in hbm_get_pkt_info()
129 pkti->ecn = 0; in hbm_get_pkt_info()
H A Ddo_hbm_test.sh87 ecn=0
144 ecn=1
224 if [ $ecn -ne 0 ] ; then
407 if [ $ecn -ne 0 ] ; then
H A Dhbm_out_kern.c128 if (pkti.ecn) in _hbm_out_cg()
134 if (pkti.ecn || pkti.is_tcp) { in _hbm_out_cg()
H A Dhbm_edt_kern.c118 if (pkti.is_tcp && pkti.ecn == 0) in _hbm_out_cg()
/linux/include/net/
H A Dinet_ecn.h79 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce() local
89 if (!(ecn & 2)) in IP_ECN_set_ce()
90 return !ecn; in IP_ECN_set_ce()
98 (__force u16)htons(ecn)); in IP_ECN_set_ce()
H A Dcodel_impl.h61 params->ecn = false; in codel_params_init()
186 if (params->ecn && INET_ECN_set_ce(skb)) { in codel_dequeue()
217 if (params->ecn && INET_ECN_set_ce(skb)) { in codel_dequeue()
H A Dpie.h34 u8 ecn; member
96 params->ecn = false; in pie_params_init()
H A Dipv6_frag.h28 u8 ecn; member
38 fq->ecn = 0; in ip6frag_init()
H A Dcodel.h112 bool ecn; member
/linux/net/6lowpan/
H A Diphc.c507 u8 ecn = tf[0] & 0xc0; in lowpan_iphc_tf_set_ecn() local
510 hdr->flow_lbl[0] |= (ecn >> 2); in lowpan_iphc_tf_set_ecn()
993 u8 dscp, ecn; in lowpan_iphc_get_tc() local
1000 ecn = (hdr->flow_lbl[0] & 0x30); 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/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_acl_flex_actions.c1478 MLXSW_ITEM32(afa, qos, ecn, 0x04, 24, 2);
1530 enum mlxsw_afa_qos_ecn_cmd ecn_cmd, u8 ecn) in mlxsw_afa_qos_ecn_pack() argument
1533 mlxsw_afa_qos_ecn_set(payload, ecn); in mlxsw_afa_qos_ecn_pack()
1555 bool set_ecn, u8 ecn, in __mlxsw_afa_block_append_qos_dsfield() argument
1568 mlxsw_afa_qos_ecn_pack(act, MLXSW_AFA_QOS_ECN_CMD_SET, ecn); in __mlxsw_afa_block_append_qos_dsfield()
1600 u8 ecn, struct netlink_ext_ack *extack) in mlxsw_afa_block_append_qos_ecn() argument
1604 true, ecn, in mlxsw_afa_block_append_qos_ecn()
H A Dcore_acl_flex_actions.h84 u8 ecn, struct netlink_ext_ack *extack);
/linux/net/sched/
H A Dsch_netem.c93 u32 ecn; member
468 if (q->ecn && INET_ECN_set_ce(skb)) in netem_enqueue()
1065 q->ecn = nla_get_u32(tb[TCA_NETEM_ECN]); in netem_change()
1225 if (q->ecn && nla_put_u32(skb, TCA_NETEM_ECN, q->ecn)) in netem_dump()
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dcpl5_cmd.h174 u8 ecn:1; member
180 u8 ecn:1; member
/linux/drivers/net/ethernet/netronome/nfp/abm/
H A Dmain.h176 bool ecn; member
H A Dqdisc.c220 act = qdisc->red.band[i].ecn ? in nfp_abm_offload_compile_red()
592 qdisc->red.band[i].ecn = opt->set.tab[i].is_ecn; in nfp_abm_gred_replace()
725 qdisc->red.band[0].ecn = opt->set.is_ecn; in nfp_abm_red_replace()
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_cpl.h214 __u8 ecn:1; member
220 __u8 ecn:1; member
/linux/net/mac80211/
H A Dsta_info.c707 sta->cparams.ecn = true; in __sta_info_alloc()
2907 sta->cparams.ecn = false; in sta_update_codel_params()
2911 sta->cparams.ecn = true; in sta_update_codel_params()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste_v1.c1099 DR_STE_SET_TAG(eth_l3_ipv4_5_tuple_v1, tag, ecn, spec, ip_ecn); in dr_ste_v1_build_eth_l3_ipv4_5_tuple_tag()
1409 DR_STE_SET_TAG(eth_l4_v1, tag, ecn, spec, ip_ecn); in dr_ste_v1_build_eth_ipv6_l3_l4_tag()
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
H A Dcounters.rst1276 - The number of packets ecn marked by device due to per host congestion.
/linux/net/netfilter/
H A DKconfig1317 tristate '"ecn" match support'
/linux/Documentation/networking/
H A Dip-sysctl.rst3288 1: Enable ecn.
3289 0: Disable ecn.

12