summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/igc
diff options
context:
space:
mode:
authorJeroen de Borst <jeroendb@google.com>2024-02-29 13:22:34 -0800
committerDavid S. Miller <davem@davemloft.net>2024-03-04 10:03:31 +0000
commit0b43cf527d1d6b75597b0f6c40a60a8b67837afe (patch)
tree7abfa20059a8b96c86057f555735966a246cd097 /drivers/net/ethernet/intel/igc
parent6752fb18dc5763e9d6efe5aebf03e4fc69e6086b (diff)
downloadlinux-0b43cf527d1d6b75597b0f6c40a60a8b67837afe.tar.gz
linux-0b43cf527d1d6b75597b0f6c40a60a8b67837afe.tar.bz2
linux-0b43cf527d1d6b75597b0f6c40a60a8b67837afe.zip
gve: Add header split device option
To enable header split via ethtool, we first need to query the device to get the max rx buffer size and header buffer size. Add a device option to get these values and store them in the driver. If the header buffer size received from the device is non-zero, it means header split is supported in the device. Currently the max rx buffer size will only be used when header split is enabled which will set the data_buffer_size_dqo to be the max rx buffer size. Also change the data_buffer_size_dqo from int to u16 since we are modifying it and making it to be consistent with max_rx_buffer_size. Co-developed-by: Ziwei Xiao <ziweixiao@google.com> Signed-off-by: Ziwei Xiao <ziweixiao@google.com> Signed-off-by: Jeroen de Borst <jeroendb@google.com> Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com> Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions