diff options
| author | David Ahern <dsahern@gmail.com> | 2018-05-21 19:08:15 +0300 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-22 11:51:09 +0300 |
| commit | 4f74fede40df8dbdb5261d50682491126675aac3 (patch) | |
| tree | 70615666ccc5c415f02efde857a8bb800a11791f /tools/perf/scripts/python/stat-cpi.py | |
| parent | 901731b882d77dc53897aec45015ced42d56fe4c (diff) | |
| download | linux-4f74fede40df8dbdb5261d50682491126675aac3.tar.xz | |
bpf: Add mtu checking to FIB forwarding helper
Add check that egress MTU can handle packet to be forwarded. If
the MTU is less than the packet length, return 0 meaning the
packet is expected to continue up the stack for help - eg.,
fragmenting the packet or sending an ICMP.
The XDP path needs to leverage the FIB entry for an MTU on the
route spec or an exception entry for a given destination. The
skb path lets is_skb_forwardable decide if the packet can be
sent.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
