]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
cxgb3: Update VLAN extraction stats in the GRO path
authorVipul Pandya <vipul@chelsio.com>
Fri, 1 Feb 2013 00:03:47 +0000 (00:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2013 18:22:32 +0000 (13:22 -0500)
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb3/sge.c

index 9096dc09c72f1c1ad16cdfa27a3d283f6c33fea6..9d67eb794c4baf612fbbab2e2897235cef10a796 100644 (file)
@@ -2130,8 +2130,10 @@ static void lro_add_page(struct adapter *adap, struct sge_qset *qs,
 
        skb_record_rx_queue(skb, qs - &adap->sge.qs[pi->first_qset]);
 
-       if (cpl->vlan_valid)
+       if (cpl->vlan_valid) {
+               qs->port_stats[SGE_PSTAT_VLANEX]++;
                __vlan_hwaccel_put_tag(skb, ntohs(cpl->vlan));
+       }
        napi_gro_frags(&qs->napi);
 }