Skip to content

Commit 7a54de9

Browse files
haiyangzPaolo Abeni
authored andcommitted
net: mana: Fix the tso_bytes calculation
sizeof(struct hop_jumbo_hdr) is not part of tso_bytes, so remove the subtraction from header size. Cc: stable@vger.kernel.org Fixes: bd7fc6e ("net: mana: Add new MANA VF performance counters for easier troubleshooting") Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Shradha Gupta <shradhagupta@linux.microsoft.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent b2b0000 commit 7a54de9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/net/ethernet/microsoft/mana/mana_en.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ netdev_tx_t mana_start_xmit(struct sk_buff *skb, struct net_device *ndev)
264264
ihs = skb_transport_offset(skb) + sizeof(struct udphdr);
265265
} else {
266266
ihs = skb_tcp_all_headers(skb);
267-
if (ipv6_has_hopopt_jumbo(skb))
268-
ihs -= sizeof(struct hop_jumbo_hdr);
269267
}
270268

271269
u64_stats_update_begin(&tx_stats->syncp);

0 commit comments

Comments
 (0)