Home
last modified time | relevance | path

Searched full:drop (Results 1 – 25 of 2062) sorted by relevance

12345678910>>...83

/Linux-v6.6/Documentation/networking/devlink/
Ddevlink-trap.rst38 port). This is especially useful for drop traps (see :ref:`Trap-Types`)
62 | devlink | (non-drop traps)
91 * ``drop``: Trapped packets were dropped by the underlying device. Packets
103 the kernel's Rx path, but not reported to the kernel's drop monitor.
115 * ``drop``: The packet is dropped by the underlying device and a copy is not
135 - ``drop``
136 - Traps incoming packets that the device decided to drop because of a
139 - ``drop``
140 - Traps incoming packets that the device decided to drop in case of VLAN
144 - ``drop``
[all …]
Dprestera.rst116 - ``drop``
119 - ``drop``
122 - ``drop``
125 - ``drop``
128 - ``drop``
131 - ``drop``
134 - ``drop``
137 - ``drop``
140 - ``drop``
141 …- Drops non-conforming packets (dropped by Ingress policer, metering drop), e.g. packet rate excee…
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_flow_dissector.sh111 udp src_port 9 action drop
113 # Send 10 IPv4/UDP packets from port 8. Filter should not drop any.
115 # Send 10 IPv4/UDP packets from port 9. Filter should drop all.
117 # Send 10 IPv4/UDP packets from port 10. Filter should not drop any.
121 # Send 10 IPv4/UDP packets from port 8. Filter should not drop any.
123 # Send 10 IPv4/UDP packets from port 9. Filter should drop all.
125 # Send 10 IPv4/UDP packets from port 10. Filter should not drop any.
129 # Send 10 IPv4/IPv4/UDP packets from port 8. Filter should not drop any.
132 # Send 10 IPv4/IPv4/UDP packets from port 9. Filter should drop all.
135 # Send 10 IPv4/IPv4/UDP packets from port 10. Filter should not drop any.
[all …]
/Linux-v6.6/samples/bpf/
Dxdp_sample_user.c61 #define DROP(drop) drop, "drop/s" argument
116 __u64 drop; member
126 __u64 drop; member
138 __u64 drop; member
221 " err,drop/s Aggregated count of errors per second (including dropped packets)\n" in sample_print_help()
228 " \t\t\tWhenever an error or packet drop occurs, details of per CPU error\n" in sample_print_help()
229 " \t\t\tand drop statistics will be expanded inline in terse mode.\n" in sample_print_help()
653 double t, pps, drop, err; in stats_get_rx_cnt() local
666 drop = calc_drop_pps(r, p, t); in stats_get_rx_cnt()
668 if (!pps && !drop && !err) in stats_get_rx_cnt()
[all …]
Dxdp_router_ipv4.bpf.c89 goto drop; in xdp_router_ipv4_prog()
99 goto drop; in xdp_router_ipv4_prog()
116 goto drop; in xdp_router_ipv4_prog()
139 goto drop; in xdp_router_ipv4_prog()
144 goto drop; in xdp_router_ipv4_prog()
149 goto drop; in xdp_router_ipv4_prog()
182 drop: in xdp_router_ipv4_prog()
Dhbm_out_kern.c18 * the other two to drop packets:
23 * | drop thresh |
24 * Small pkt drop Mark threshold
33 * at drop threshold).
36 * If the credit is below the drop threshold, the packet is dropped. If it
41 * This BPF program actually uses 2 drop thresholds, one threshold
122 // Set flags (drop, congestion, cwr) in _hbm_out_cg()
126 // Very congested, set drop packet in _hbm_out_cg()
/Linux-v6.6/tools/testing/selftests/drivers/net/mlxsw/
Dtc_restrictions.sh42 # shared block with a drop rule.
48 skip_sw dst_ip 192.0.2.2 action drop
49 check_err $? "Failed to add drop rule to ingress bound block"
62 …check_err $? "Failed to create another clsact with egress shared block after blocker drop rule rem…
65 skip_sw dst_ip 192.0.2.2 action drop
66 check_fail $? "Incorrect success to add drop rule to mixed bound block"
74 skip_sw dst_ip 192.0.2.2 action drop
75 check_err $? "Failed to add drop rule to egress bound shared block"
82 log_test "shared block drop"
137 log_test "shared block drop"
[all …]
Ddevlink_trap_policer.sh94 devlink trap set $DEVLINK_DEV trap blackhole_route action drop
229 check_err $? "Expected non-zero policer drop rate, got 0"
230 log_info "Measured policer drop rate of $drop_rate pps"
244 check_err $? "Expected zero policer drop rate, got a drop rate of $drop_rate pps"
245 log_info "Measured policer drop rate of $drop_rate pps"
265 check_err $? "Expected zero policer drop rate, got a drop rate of $drop_rate pps"
266 log_info "Measured policer drop rate of $drop_rate pps"
290 local t0_rx t0_drop t1_rx t1_drop rx drop
315 drop=$((t1_drop - t0_drop))
316 (( drop == 0 ))
[all …]
Ddevlink_trap_l2_drops.sh4 # Test devlink-trap L2 drops functionality over mlxsw. Each registered L2 drop
103 flower src_mac $smac action drop
129 flower dst_mac $dmac action drop
148 devlink_trap_action_set $trap_name "drop"
189 flower dst_mac $dmac action drop
209 devlink_trap_action_set $trap_name "drop"
232 flower dst_mac $dmac action drop
252 devlink_trap_action_set $trap_name "drop"
302 flower dst_mac $dmac action drop
321 devlink_trap_action_set $trap_name "drop"
[all …]
/Linux-v6.6/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink_trap.sh80 # The action of non-drop traps cannot be changed.
81 if [ $(devlink_trap_type_get $trap_name) = "drop" ]; then
88 devlink_trap_action_set $trap_name "drop"
90 if [ $action != "drop" ]; then
91 check_err 1 "Trap $trap_name did not change action to drop"
102 devlink_trap_action_set $trap_name "drop"
136 devlink_trap_action_set "made_up_trap" "drop"
172 if [ $(devlink_trap_type_get $trap_name) = "drop" ]; then
177 devlink_trap_action_set $trap_name "drop"
179 check_err $? "Stats of trap $trap_name not idle when action is drop"
[all …]
/Linux-v6.6/include/net/
Ddropreason.h8 * enum skb_drop_reason_subsys - subsystem tag for (extended) drop reasons
11 /** @SKB_DROP_REASON_SUBSYS_CORE: core drop reasons defined above */
15 * @SKB_DROP_REASON_SUBSYS_MAC80211_UNUSABLE: mac80211 drop reasons
16 * for unusable frames, see net/mac80211/drop.h
21 * @SKB_DROP_REASON_SUBSYS_MAC80211_MONITOR: mac80211 drop reasons
22 * for frames still going to monitor, see net/mac80211/drop.h
27 * @SKB_DROP_REASON_SUBSYS_OPENVSWITCH: openvswitch drop reasons,
28 * see net/openvswitch/drop.h
Dcodel_impl.h137 * for at least interval we'll say it's ok to drop in codel_should_drop()
158 bool drop; in codel_dequeue() local
165 drop = codel_should_drop(skb, ctx, vars, params, stats, in codel_dequeue()
168 if (!drop) { in codel_dequeue()
172 /* It's time for the next drop. Drop the current in codel_dequeue()
175 * If not, schedule the next drop. in codel_dequeue()
176 * A large backlog might result in drop rates so high in codel_dequeue()
177 * that the next drop should happen now, in codel_dequeue()
206 /* and schedule the next drop */ in codel_dequeue()
214 } else if (drop) { in codel_dequeue()
[all …]
Dpie.h20 * @tupdate: interval at which drop probability is calculated
22 * @alpha: parameter to control drop probability
23 * @beta: parameter to control drop probability
25 * @bytemode: is drop probability scaled based on pkt size
45 * @prob: drop probability
46 * @accu_prob: accumulated drop probability
/Linux-v6.6/lib/zlib_inflate/
Dinftrees.c31 unsigned drop; /* code bits to drop for sub-table */ in zlib_inflate_table() local
138 with length len. That code is converted to an index by dropping drop in zlib_inflate_table()
139 bits off of the bottom. For codes where len is less than drop + curr, in zlib_inflate_table()
140 those top drop + curr - len bits are incremented through all values to in zlib_inflate_table()
146 new sub-table should be started. drop is zero when the root table is in zlib_inflate_table()
147 being filled, and drop is root when sub-tables are being filled. in zlib_inflate_table()
192 drop = 0; /* current bits to drop from code for index */ in zlib_inflate_table()
204 this.bits = (unsigned char)(len - drop); in zlib_inflate_table()
219 incr = 1U << (len - drop); in zlib_inflate_table()
224 next[(huff >> drop) + fill] = this; in zlib_inflate_table()
[all …]
/Linux-v6.6/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh101 $tcflags dst_ip 192.0.2.2 action drop
110 $tcflags dst_ip 198.51.100.2 action drop
147 $tcflags dst_ip 192.0.2.2 action drop
149 $tcflags dst_ip 192.0.2.2 action drop
166 $tcflags dst_ip 192.0.2.2 action drop
195 $tcflags dst_ip 192.0.2.2 action drop
197 $tcflags dst_ip 192.0.0.0/8 action drop
214 $tcflags dst_ip 192.0.2.0/24 action drop
264 action drop"
302 $tcflags dst_ip 192.0.2.2 action drop
[all …]
/Linux-v6.6/tools/testing/selftests/net/forwarding/
Dtc_flower.sh45 $tcflags dst_mac $dummy_mac action drop
47 $tcflags dst_mac $h2mac action drop
71 $tcflags src_mac $dummy_mac action drop
73 $tcflags src_mac $h1mac action drop
95 $tcflags dst_ip 198.51.100.2 action drop
97 $tcflags dst_ip 192.0.2.2 action drop
99 $tcflags dst_ip 192.0.2.0/24 action drop
129 $tcflags src_ip 198.51.100.1 action drop
131 $tcflags src_ip 192.0.2.1 action drop
133 $tcflags src_ip 192.0.2.0/24 action drop
[all …]
/Linux-v6.6/tools/testing/selftests/tc-testing/tc-tests/actions/
Dgact.json76 "name": "Add valid drop action",
89 "cmdUnderTest": "$TC actions add action drop index 30",
92 "matchPattern": "action order [0-9]*: gact action drop.*index 30 ref",
162 "cmdUnderTest": "$TC actions add action drop index 15",
165 "matchPattern": "action order [0-9]*: gact action drop.*index 15 ref",
186 "cmdUnderTest": "$TC actions add action drop index 4294967296",
189 "matchPattern": "action order [0-9]*: gact action drop.*index 4294967296 ref",
210 "cmdUnderTest": "$TC actions add action drop index 4294967295",
213 "matchPattern": "action order [0-9]*: gact action drop.*index 4294967295 ref",
346 "name": "Delete drop action",
[all …]
/Linux-v6.6/net/devlink/
Dtrap.c383 NL_SET_ERR_MSG(extack, "Cannot change action of non-drop traps. Skipping"); in __devlink_trap_action_set()
959 DEVLINK_TRAP(SMAC_MC, DROP),
960 DEVLINK_TRAP(VLAN_TAG_MISMATCH, DROP),
961 DEVLINK_TRAP(INGRESS_VLAN_FILTER, DROP),
962 DEVLINK_TRAP(INGRESS_STP_FILTER, DROP),
963 DEVLINK_TRAP(EMPTY_TX_LIST, DROP),
964 DEVLINK_TRAP(PORT_LOOPBACK_FILTER, DROP),
965 DEVLINK_TRAP(BLACKHOLE_ROUTE, DROP),
967 DEVLINK_TRAP(TAIL_DROP, DROP),
968 DEVLINK_TRAP(NON_IP_PACKET, DROP),
[all …]
/Linux-v6.6/net/ipv4/
Dip_forward.c96 goto drop; in ip_forward()
99 goto drop; in ip_forward()
102 goto drop; in ip_forward()
106 goto drop; in ip_forward()
125 goto drop; in ip_forward()
140 goto drop; in ip_forward()
145 goto drop; in ip_forward()
171 goto drop; in ip_forward()
178 drop: in ip_forward()
Dxfrm4_input.c35 goto drop; in xfrm4_rcv_encap_finish()
39 goto drop; in xfrm4_rcv_encap_finish()
42 drop: in xfrm4_rcv_encap_finish()
113 goto drop; in xfrm4_udp_encap_rcv()
124 goto drop; in xfrm4_udp_encap_rcv()
142 goto drop; in xfrm4_udp_encap_rcv()
150 goto drop; in xfrm4_udp_encap_rcv()
163 drop: in xfrm4_udp_encap_rcv()
/Linux-v6.6/rust/alloc/vec/
Ddrain_filter.rs43 /// This is used as a hint in the drop implementation to prevent consumption
91 // Normally `Drop` impl would drop [tail] (via .for_each(drop), ie still calling `pred`) in keep_rest()
96 …// 3. Do *not* drop self, as everything is put in a consistent state already, there is nothing to … in keep_rest()
154 impl<T, F, A: Allocator> Drop for DrainFilter<'_, T, F, A>
158 fn drop(&mut self) { in drop() function
166 impl<'a, 'b, T, F, A: Allocator> Drop for BackshiftOnDrop<'a, 'b, T, F, A> in drop()
170 fn drop(&mut self) { in drop() function
177 // is required to prevent a double-drop of the last successfully in drop()
196 backshift.drain.for_each(drop); in drop()
/Linux-v6.6/net/bridge/
Dbr_input.c89 goto drop; in br_handle_frame_finish()
97 goto drop; in br_handle_frame_finish()
114 * and drop the packet. in br_handle_frame_finish()
119 goto drop; in br_handle_frame_finish()
122 /* FDB mismatch. Drop the packet without roaming. */ in br_handle_frame_finish()
123 goto drop; in br_handle_frame_finish()
125 /* FDB match, but entry is locked. Refresh it and drop in br_handle_frame_finish()
130 goto drop; in br_handle_frame_finish()
149 goto drop; in br_handle_frame_finish()
154 goto drop; in br_handle_frame_finish()
[all …]
/Linux-v6.6/tools/testing/selftests/tc-testing/tc-tests/filters/
Dcgroup.json4 "name": "Add cgroup filter with cmp ematch u8/link layer and drop action",
15 …f: handle 1 protocol ip prio 1 cgroup match 'cmp(u8 at 0 layer link mask 0xff gt 10)' action drop",
81 …match 'cmp(u32 at 4 layer link mask 0xff00ff00 eq 3)' action skbedit mark 7 pipe action gact drop",
84 …(u32 at 4 layer 0 mask 0xff00ff00 eq 3\\).*action.*skbedit.*mark 7 pipe.*action.*gact action drop",
114 … "name": "Add cgroup filter with cmp ematch u8/network layer with trans flag and drop action",
125 …le 0xab protocol ip prio 11 cgroup match 'cmp(u8 at 0 layer 1 mask 0xff trans gt 10)' action drop",
169 …ch 'cmp(u32 at 4 layer network mask 0xff00ff00 eq 3)' action skbedit mark 7 pipe action gact drop",
172 …(u32 at 4 layer 1 mask 0xff00ff00 eq 3\\).*action.*skbedit.*mark 7 pipe.*action.*gact action drop",
213 …8 at 0 layer link mask 0xff eq 3) and cmp(u16 at 8 layer link mask 0x00ff gt 7)' action gact drop",
216 …layer 0 mask 0xff eq 3\\).*AND cmp\\(u16 at 8 layer 0 mask 0xff gt 7\\).*action.*gact action drop",
[all …]
/Linux-v6.6/net/ipv6/
Dxfrm6_input.c112 goto drop; in xfrm6_udp_encap_rcv()
123 goto drop; in xfrm6_udp_encap_rcv()
141 goto drop; in xfrm6_udp_encap_rcv()
148 goto drop; in xfrm6_udp_encap_rcv()
161 drop: in xfrm6_udp_encap_rcv()
189 goto drop; in xfrm6_input_addr()
194 goto drop; in xfrm6_input_addr()
241 goto drop; in xfrm6_input_addr()
255 drop: in xfrm6_input_addr()
/Linux-v6.6/drivers/infiniband/hw/qib/
Dqib_ud.c70 goto drop; in qib_ud_loopback()
81 goto drop; in qib_ud_loopback()
102 goto drop; in qib_ud_loopback()
117 goto drop; in qib_ud_loopback()
154 /* Silently drop packets which are too big. */ in qib_ud_loopback()
218 drop: in qib_ud_loopback()
452 * and drop incomplete packets. in qib_ud_rcv()
456 goto drop; in qib_ud_rcv()
467 goto drop; in qib_ud_rcv()
486 /* Drop invalid MAD packets (see 13.5.3.1). */ in qib_ud_rcv()
[all …]

12345678910>>...83