net/mlx5e: Fix wrong use of skb_tcp_all_headers() with encapsulation
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / en_tx.c
index dc1e01e93d5aa861eb0241a8529d34a580e15b40..27f791feb5174151406ad68618532f1c26900089 100644 (file)
@@ -152,7 +152,7 @@ mlx5e_tx_get_gso_ihs(struct mlx5e_txqsq *sq, struct sk_buff *skb, int *hopbyhop)
 
        *hopbyhop = 0;
        if (skb->encapsulation) {
-               ihs = skb_tcp_all_headers(skb);
+               ihs = skb_inner_tcp_all_headers(skb);
                stats->tso_inner_packets++;
                stats->tso_inner_bytes += skb->len - ihs;
        } else {