Lines Matching +full:feedback +full:- +full:loop
1 // SPDX-License-Identifier: GPL-2.0
51 case -EINVAL: in xdp_get_err_key()
53 case -ENETDOWN: in xdp_get_err_key()
55 case -EMSGSIZE: in xdp_get_err_key()
57 case -EOPNOTSUPP: in xdp_get_err_key()
59 case -ENOSPC: in xdp_get_err_key()
83 NO_TEAR_INC(rec->dropped); in xdp_redirect_collect_stat()
85 NO_TEAR_INC(rec->processed); in xdp_redirect_collect_stat()
88 * Returning 1 here would allow e.g. a perf-record tracepoint in xdp_redirect_collect_stat()
90 * in-practice as stopping perf-record also unload this in xdp_redirect_collect_stat()
100 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG()
108 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG()
116 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG()
124 return xdp_redirect_collect_stat(dev->ifindex, err); in BPF_PROG()
142 NO_TEAR_ADD(rec->processed, processed); in BPF_PROG()
143 NO_TEAR_ADD(rec->dropped, drops); in BPF_PROG()
146 NO_TEAR_INC(rec->issue); in BPF_PROG()
148 * this tracepoint. This can be used for creating a feedback in BPF_PROG()
149 * loop to XDP, which can take appropriate actions to mitigate in BPF_PROG()
169 NO_TEAR_ADD(rec->processed, processed); in BPF_PROG()
170 NO_TEAR_ADD(rec->dropped, drops); in BPF_PROG()
171 NO_TEAR_ADD(rec->xdp_pass, xdp_stats->pass); in BPF_PROG()
172 NO_TEAR_ADD(rec->xdp_drop, xdp_stats->drop); in BPF_PROG()
173 NO_TEAR_ADD(rec->xdp_redirect, xdp_stats->redirect); in BPF_PROG()
176 NO_TEAR_INC(rec->issue); in BPF_PROG()
188 if (!IN_SET(from_match, dev->ifindex)) in BPF_PROG()
190 if (!IN_SET(to_match, dev->ifindex)) in BPF_PROG()
200 NO_TEAR_INC(rec->dropped); in BPF_PROG()
213 idx_in = from_dev->ifindex; in BPF_PROG()
214 idx_out = to_dev->ifindex; in BPF_PROG()
225 NO_TEAR_ADD(rec->processed, sent); in BPF_PROG()
226 NO_TEAR_ADD(rec->dropped, drops); in BPF_PROG()
228 NO_TEAR_INC(rec->info); in BPF_PROG()
232 NO_TEAR_INC(rec->issue); in BPF_PROG()
245 idx_in = from_dev->ifindex; in BPF_PROG()
246 idx_out = to_dev->ifindex; in BPF_PROG()
260 NO_TEAR_ADD(rec->processed, sent); in BPF_PROG()
261 NO_TEAR_ADD(rec->dropped, drops); in BPF_PROG()
262 NO_TEAR_INC(rec->info); in BPF_PROG()
264 NO_TEAR_INC(rec->issue); in BPF_PROG()