Commit 88f09bd5 authored by Manish Chopra's avatar Manish Chopra Committed by David S. Miller

qede: Fix net-next "make ARCH=x86_64"

'commit 55482edc
("qede: Add slowpath/fastpath support and enable hardware GRO")'
introduces below error when compiling net-next with "make ARCH=x86_64"

drivers/built-in.o: In function `qede_rx_int':
qede_main.c:(.text+0x6101a0): undefined reference to `tcp_gro_complete'
Signed-off-by: default avatarManish Chopra <manish.chopra@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e49038d6
...@@ -1001,6 +1001,7 @@ static void qede_tpa_start(struct qede_dev *edev, ...@@ -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) static void qede_gro_ip_csum(struct sk_buff *skb)
{ {
const struct iphdr *iph = ip_hdr(skb); const struct iphdr *iph = ip_hdr(skb);
...@@ -1029,12 +1030,14 @@ static void qede_gro_ipv6_csum(struct sk_buff *skb) ...@@ -1029,12 +1030,14 @@ static void qede_gro_ipv6_csum(struct sk_buff *skb)
&iph->saddr, &iph->daddr, 0); &iph->saddr, &iph->daddr, 0);
tcp_gro_complete(skb); tcp_gro_complete(skb);
} }
#endif
static void qede_gro_receive(struct qede_dev *edev, static void qede_gro_receive(struct qede_dev *edev,
struct qede_fastpath *fp, struct qede_fastpath *fp,
struct sk_buff *skb, struct sk_buff *skb,
u16 vlan_tag) u16 vlan_tag)
{ {
#ifdef CONFIG_INET
if (skb_shinfo(skb)->gso_size) { if (skb_shinfo(skb)->gso_size) {
switch (skb->protocol) { switch (skb->protocol) {
case htons(ETH_P_IP): case htons(ETH_P_IP):
...@@ -1049,7 +1052,7 @@ static void qede_gro_receive(struct qede_dev *edev, ...@@ -1049,7 +1052,7 @@ static void qede_gro_receive(struct qede_dev *edev,
ntohs(skb->protocol)); ntohs(skb->protocol));
} }
} }
#endif
skb_record_rx_queue(skb, fp->rss_id); skb_record_rx_queue(skb, fp->rss_id);
qede_skb_receive(edev, fp, skb, vlan_tag); qede_skb_receive(edev, fp, skb, vlan_tag);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment