diff options
author | Matteo Croce <[email protected]> | 2019-04-11 12:26:33 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-04-11 11:10:34 -0700 |
commit | 1f227d16083b2e280b7dde4ca78883d75593f2fd (patch) | |
tree | 607673dfc7cbfa106a6ae87456502a475c9beee8 /scripts | |
parent | 5ee15c101f29e0093ffb5448773ccbc786eb313b (diff) |
net: thunderx: don't allow jumbo frames with XDP
The thunderx driver forbids to load an eBPF program if the MTU is too high,
but this can be circumvented by loading the eBPF, then raising the MTU.
Fix this by limiting the MTU if an eBPF program is already loaded.
Fixes: 05c773f52b96e ("net: thunderx: Add basic XDP support")
Signed-off-by: Matteo Croce <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions