summaryrefslogtreecommitdiff
path: root/include/uapi/linux/virtio_config.h
diff options
context:
space:
mode:
authorDavide Caratti <dcaratti@redhat.com>2022-02-10 18:56:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-14 18:41:52 +0200
commit7cbcf67ca409726ab7e2db8aa626a6e91d6ccdd3 (patch)
tree5a0e53bc8d74d099cbb28fa1dd60215511aefb86 /include/uapi/linux/virtio_config.h
parent569d53264207e7334253484c96b363f17b98fbd4 (diff)
net/sched: act_police: more accurate MTU policing
commit 4ddc844eb81da59bfb816d8d52089aba4e59e269 upstream. in current Linux, MTU policing does not take into account that packets at the TC ingress have the L2 header pulled. Thus, the same TC police action (with the same value of tcfp_mtu) behaves differently for ingress/egress. In addition, the full GSO size is compared to tcfp_mtu: as a consequence, the policer drops GSO packets even when individual segments have the L2 + L3 + L4 + payload length below the configured valued of tcfp_mtu. Improve the accuracy of MTU policing as follows: - account for mac_len for non-GSO packets at TC ingress. - compare MTU threshold with the segmented size for GSO packets. Also, add a kselftest that verifies the correct behavior. Signed-off-by: Davide Caratti <dcaratti@redhat.com> Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/virtio_config.h')
0 files changed, 0 insertions, 0 deletions