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: [email protected] Fixes: bd7fc6e ("net: mana: Add new MANA VF performance counters for easier troubleshooting") Signed-off-by: Haiyang Zhang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Shradha Gupta <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent b2b0000 commit 7a54de9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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)