]> git.baikalelectronics.ru Git - kernel.git/commit
gve: Add a jumbo-frame device option.
authorShailend Chand <shailend@google.com>
Sun, 24 Oct 2021 18:42:38 +0000 (11:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 13:13:12 +0000 (14:13 +0100)
commit12c341743a370f4d5c7e02a0c829d70a079746f0
tree272ef2e30479af02cab48c379d9aa82bb271534b
parent36766c7418c130745ccda7782b40465b5f8aeaf3
gve: Add a jumbo-frame device option.

A widely deployed driver has a bug that will cause the driver not
to load when a max_mtu > 2048 is present in the device descriptor.

To avoid this bug while still enabling jumbo frames, we present a lower
max_mtu in the device descriptor and pass the actual max_mtu in
a separate device option.

The driver supports 2 different queue formats. To enable features
on one queue format, but not the other, a supported_features mask
was added to the device options in the device descriptor.

Signed-off-by: Shailend Chand <shailend@google.com>
Signed-off-by: Jeroen de Borst <jeroendb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_adminq.c
drivers/net/ethernet/google/gve/gve_adminq.h