struct ixgbe_tx_buffer *tx_buffer_info;
        unsigned int len;
        unsigned int total = skb->len;
-       unsigned int offset = 0, size, count = 0, i;
+       unsigned int offset = 0, size, count = 0;
        unsigned int nr_frags = skb_shinfo(skb)->nr_frags;
        unsigned int f;
        unsigned int bytecount = skb->len;
        u16 gso_segs = 1;
+       u16 i;
 
        i = tx_ring->next_to_use;
 
                                              input, common, ring->queue_index);
 }
 
-static int __ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, int size)
+static int __ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size)
 {
        netif_stop_subqueue(tx_ring->netdev, tx_ring->queue_index);
        /* Herbert's original patch had:
        return 0;
 }
 
-static int ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, int size)
+static int ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size)
 {
        if (likely(ixgbe_desc_unused(tx_ring) >= size))
                return 0;
                          struct ixgbe_adapter *adapter,
                          struct ixgbe_ring *tx_ring)
 {
-       unsigned int first;
        unsigned int tx_flags = 0;
-       u8 hdr_len = 0;
        int tso;
-       int count = 0;
+       u16 count = 0;
+       u16 first;
        unsigned int f;
        __be16 protocol;
+       u8 hdr_len = 0;
 
        protocol = vlan_get_protocol(skb);