]> 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)
commitd233b7da65bca9d8e1e0f7dfb8a4859cda597e0c
tree272ef2e30479af02cab48c379d9aa82bb271534b
parentebdb7b8f53b241163b82369536e345e136e0e8fb
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