Skip to content

Commit

Permalink
cxgb3: Update VLAN extraction stats in the GRO path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vipul Pandya authored and David S. Miller committed Feb 4, 2013
1 parent 387ff91 commit 72073ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ethernet/chelsio/cxgb3/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 72073ad

Please sign in to comment.