diff options
| author | Shradha Gupta <[email protected]> | 2025-02-17 03:42:42 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2025-02-19 09:42:52 +0000 |
| commit | 685920920e3d5f68a8c50107b97747b0f8ce050f (patch) | |
| tree | 4969865d72c48b0d48e3a78109a4cf4f45518871 /drivers/net/hyperv/hyperv_net.h | |
| parent | net: mana: Allow tso_max_size to go up-to GSO_MAX_SIZE (diff) | |
| download | kernel-685920920e3d5f68a8c50107b97747b0f8ce050f.tar.gz kernel-685920920e3d5f68a8c50107b97747b0f8ce050f.zip | |
hv_netvsc: Use VF's tso_max_size value when data path is VF
On Azure, increasing VF's gso/gro packet size to up-to GSO_MAX_SIZE
is not possible without allowing the same for netvsc NIC
(as the NICs are bonded together). For bonded NICs, the min of the max
aggregated pkt size of the members is propagated in the stack.
Therefore, we use netif_set_tso_max_size() to set max aggregated pkt size
to VF's packet size for netvsc too, when the data path is switched over
to the VF
Tested on azure env with Accelerated Networking enabled and disabled.
Signed-off-by: Shradha Gupta <[email protected]>
Reviewed-by: Haiyang Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
| -rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 234db693cefa..70f7cb383228 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -1166,6 +1166,8 @@ struct netvsc_device { u32 max_chn; u32 num_chn; + u32 netvsc_gso_max_size; + atomic_t open_chn; struct work_struct subchan_work; wait_queue_head_t subchan_open; |
