net: cxgb4{,vf}: convert to hw_features
[pandora-kernel.git] / drivers / net / cxgb4 / sge.c
index 311471b..75a4b0f 100644 (file)
@@ -1556,7 +1556,6 @@ int t4_ethrx_handler(struct sge_rspq *q, const __be64 *rsp,
 {
        bool csum_ok;
        struct sk_buff *skb;
-       struct port_info *pi;
        const struct cpl_rx_pkt *pkt;
        struct sge_eth_rxq *rxq = container_of(q, struct sge_eth_rxq, rspq);
 
@@ -1584,10 +1583,9 @@ int t4_ethrx_handler(struct sge_rspq *q, const __be64 *rsp,
        if (skb->dev->features & NETIF_F_RXHASH)
                skb->rxhash = (__force u32)pkt->rsshdr.hash_val;
 
-       pi = netdev_priv(skb->dev);
        rxq->stats.pkts++;
 
-       if (csum_ok && (pi->rx_offload & RX_CSO) &&
+       if (csum_ok && (q->netdev->features & NETIF_F_RXCSUM) &&
            (pkt->l2info & htonl(RXF_UDP | RXF_TCP))) {
                if (!pkt->ip_frag) {
                        skb->ip_summed = CHECKSUM_UNNECESSARY;