diff options
author | Jason Wang <[email protected]> | 2016-12-23 22:37:30 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-12-23 13:48:55 -0500 |
commit | 92502fe86c7c9b3f8543f29641a3c71805e82757 (patch) | |
tree | bc1fce9b60d284ed0706397cd6dc631a65684453 /lib/netdev-notifier-error-inject.c | |
parent | 5c33474d41af09f09c98f1df70f267920587bec0 (diff) |
virtio-net: forbid XDP when VIRTIO_NET_F_GUEST_UFO is support
When VIRTIO_NET_F_GUEST_UFO is negotiated, host could still send UFO
packet that exceeds a single page which could not be handled
correctly by XDP. So this patch forbids setting XDP when GUEST_UFO is
supported. While at it, forbid XDP for ECN (which comes only from GRO)
too to prevent user from misconfiguration.
Cc: John Fastabend <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Acked-by: John Fastabend <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions