|
@@ -707,7 +707,7 @@ static netdev_tx_t qeth_l2_hard_start_xmit(struct sk_buff *skb,
|
|
|
int data_offset = -1;
|
|
|
int elements_needed = 0;
|
|
|
int hd_len = 0;
|
|
|
- int nr_frags;
|
|
|
+ unsigned int nr_frags;
|
|
|
|
|
|
if (card->qdio.do_prio_queueing || (cast_type &&
|
|
|
card->info.is_multicast_different))
|
|
@@ -747,6 +747,7 @@ static netdev_tx_t qeth_l2_hard_start_xmit(struct sk_buff *skb,
|
|
|
if (lin_rc)
|
|
|
goto tx_drop;
|
|
|
}
|
|
|
+ nr_frags = skb_shinfo(new_skb)->nr_frags;
|
|
|
|
|
|
if (card->info.type == QETH_CARD_TYPE_OSN)
|
|
|
hdr = (struct qeth_hdr *)skb->data;
|
|
@@ -799,13 +800,10 @@ static netdev_tx_t qeth_l2_hard_start_xmit(struct sk_buff *skb,
|
|
|
if (!rc) {
|
|
|
card->stats.tx_packets++;
|
|
|
card->stats.tx_bytes += tx_bytes;
|
|
|
- if (card->options.performance_stats) {
|
|
|
- nr_frags = skb_shinfo(new_skb)->nr_frags;
|
|
|
- if (nr_frags) {
|
|
|
- card->perf_stats.sg_skbs_sent++;
|
|
|
- /* nr_frags + skb->data */
|
|
|
- card->perf_stats.sg_frags_sent += nr_frags + 1;
|
|
|
- }
|
|
|
+ if (card->options.performance_stats && nr_frags) {
|
|
|
+ card->perf_stats.sg_skbs_sent++;
|
|
|
+ /* nr_frags + skb->data */
|
|
|
+ card->perf_stats.sg_frags_sent += nr_frags + 1;
|
|
|
}
|
|
|
if (new_skb != skb)
|
|
|
dev_kfree_skb_any(skb);
|