net/mlx4_en: Use local var in tx flow for skb_shinfo(skb)
authorEric Dumazet <edumazet@google.com>
Sun, 5 Oct 2014 09:35:17 +0000 (12:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 05:04:15 +0000 (01:04 -0400)
commitb9d8839a44092cb4268ef2813c34d5dbf3363603
tree93e3bb2052e4edb6d674193d244918f87b84336b
parentf905c79e12791d09bbfd9ba7b672fbeb19c1e7c2
net/mlx4_en: Use local var in tx flow for skb_shinfo(skb)

Acces skb_shinfo(skb) once in tx flow.
Also, rename @i variable to @i_frag to avoid confusion, as the "goto
tx_drop_unmap;" relied on this @i variable.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c