OSDN Git Service

virtio_net: reject unsupported coalescing params
authorJakub Kicinski <kuba@kernel.org>
Thu, 5 Mar 2020 05:15:42 +0000 (21:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2020 20:12:35 +0000 (12:12 -0800)
commita51e520653a635051298532a2066c3346d6acd29
tree05912b7f3192e4a8f8c77228f6c42552ea05cd0e
parentf9f12f57e2a51c80b79aae440810e42fa669476e
virtio_net: reject unsupported coalescing params

Set ethtool_ops->supported_coalesce_params to let
the core reject unsupported coalescing parameters.

This driver correctly rejects all unsupported parameters.
As a side effect of these changes the error code for
unsupported params changes from EINVAL to EOPNOTSUPP.

v2: correctly handle rx-frames (and adjust the commit msg)
v3: adjust commit message for new error code and member name

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c