Skip to content

Commit ec082d3

Browse files
gal-pressmanSaeed Mahameed
authored andcommitted
net/mlx5e: Fix wrong use of skb_tcp_all_headers() with encapsulation
Use skb_inner_tcp_all_headers() instead of skb_tcp_all_headers() when transmitting an encapsulated packet in mlx5e_tx_get_gso_ihs(). Fixes: 504148f ("net: add skb_[inner_]tcp_all_headers helpers") Cc: Eric Dumazet <[email protected]> Signed-off-by: Gal Pressman <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 623cd87 commit ec082d3

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ mlx5e_tx_get_gso_ihs(struct mlx5e_txqsq *sq, struct sk_buff *skb, int *hopbyhop)
152152

153153
*hopbyhop = 0;
154154
if (skb->encapsulation) {
155-
ihs = skb_tcp_all_headers(skb);
155+
ihs = skb_inner_tcp_all_headers(skb);
156156
stats->tso_inner_packets++;
157157
stats->tso_inner_bytes += skb->len - ihs;
158158
} else {

0 commit comments

Comments
 (0)