Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
[deliverable/linux.git] / drivers / net / ethernet / qlogic / qede / qede_main.c
index 572862564ab610debab615c482d541a62af15cbe..518af329502ddff20c8fc322ebed3303b7b0b9a9 100644 (file)
@@ -1001,6 +1001,7 @@ static void qede_tpa_start(struct qede_dev *edev,
        }
 }
 
+#ifdef CONFIG_INET
 static void qede_gro_ip_csum(struct sk_buff *skb)
 {
        const struct iphdr *iph = ip_hdr(skb);
@@ -1029,12 +1030,14 @@ static void qede_gro_ipv6_csum(struct sk_buff *skb)
                                  &iph->saddr, &iph->daddr, 0);
        tcp_gro_complete(skb);
 }
+#endif
 
 static void qede_gro_receive(struct qede_dev *edev,
                             struct qede_fastpath *fp,
                             struct sk_buff *skb,
                             u16 vlan_tag)
 {
+#ifdef CONFIG_INET
        if (skb_shinfo(skb)->gso_size) {
                switch (skb->protocol) {
                case htons(ETH_P_IP):
@@ -1049,7 +1052,7 @@ static void qede_gro_receive(struct qede_dev *edev,
                               ntohs(skb->protocol));
                }
        }
-
+#endif
        skb_record_rx_queue(skb, fp->rss_id);
        qede_skb_receive(edev, fp, skb, vlan_tag);
 }
This page took 0.049358 seconds and 5 git commands to generate.