net/mlx5e: Use skb_shinfo(skb)->gso_segs rather than counting them
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 23 Jun 2015 14:14:15 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2015 07:42:35 +0000 (00:42 -0700)
commitfb6c6f2529e7c87a99a2f85ae1bb5b3c468482ff
treed534c941b97418bf6f7c86a3cd65abf5e0ec4bbb
parent03289b88e3bcbdf2c8e0f1c92ce4e5a4cfbabf77
net/mlx5e: Use skb_shinfo(skb)->gso_segs rather than counting them

Instead of counting number of gso fragments, we can use
skb_shinfo(skb)->gso_segs.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c