aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4vf/sge.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb4vf/sge.c')
-rw-r--r--drivers/net/cxgb4vf/sge.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/cxgb4vf/sge.c b/drivers/net/cxgb4vf/sge.c
index ecf0770bf0ff..e0b3d1bc2fdf 100644
--- a/drivers/net/cxgb4vf/sge.c
+++ b/drivers/net/cxgb4vf/sge.c
@@ -1568,6 +1568,9 @@ int t4vf_ethrx_handler(struct sge_rspq *rspq, const __be64 *rsp,
1568 } else 1568 } else
1569 skb_checksum_none_assert(skb); 1569 skb_checksum_none_assert(skb);
1570 1570
1571 /*
1572 * Deliver the packet to the stack.
1573 */
1571 if (unlikely(pkt->vlan_ex)) { 1574 if (unlikely(pkt->vlan_ex)) {
1572 struct vlan_group *grp = pi->vlan_grp; 1575 struct vlan_group *grp = pi->vlan_grp;
1573 1576
@@ -2143,7 +2146,7 @@ int t4vf_sge_alloc_rxq(struct adapter *adapter, struct sge_rspq *rspq,
2143 2146
2144 /* 2147 /*
2145 * Calculate the size of the hardware free list ring plus 2148 * Calculate the size of the hardware free list ring plus
2146 * status page (which the SGE will place at the end of the 2149 * Status Page (which the SGE will place after the end of the
2147 * free list ring) in Egress Queue Units. 2150 * free list ring) in Egress Queue Units.
2148 */ 2151 */
2149 flsz = (fl->size / FL_PER_EQ_UNIT + 2152 flsz = (fl->size / FL_PER_EQ_UNIT +
@@ -2240,8 +2243,8 @@ int t4vf_sge_alloc_eth_txq(struct adapter *adapter, struct sge_eth_txq *txq,
2240 struct port_info *pi = netdev_priv(dev); 2243 struct port_info *pi = netdev_priv(dev);
2241 2244
2242 /* 2245 /*
2243 * Calculate the size of the hardware TX Queue (including the 2246 * Calculate the size of the hardware TX Queue (including the Status
2244 * status age on the end) in units of TX Descriptors. 2247 * Page on the end of the TX Queue) in units of TX Descriptors.
2245 */ 2248 */
2246 nentries = txq->q.size + STAT_LEN / sizeof(struct tx_desc); 2249 nentries = txq->q.size + STAT_LEN / sizeof(struct tx_desc);
2247 2250