Skip to content

Commit 88f09bd

Browse files
Manish Chopradavem330
authored andcommitted
qede: Fix net-next "make ARCH=x86_64"
'commit 55482ed ("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: Manish Chopra <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e49038d commit 88f09bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/net/ethernet/qlogic/qede/qede_main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ static void qede_tpa_start(struct qede_dev *edev,
10011001
}
10021002
}
10031003

1004+
#ifdef CONFIG_INET
10041005
static void qede_gro_ip_csum(struct sk_buff *skb)
10051006
{
10061007
const struct iphdr *iph = ip_hdr(skb);
@@ -1029,12 +1030,14 @@ static void qede_gro_ipv6_csum(struct sk_buff *skb)
10291030
&iph->saddr, &iph->daddr, 0);
10301031
tcp_gro_complete(skb);
10311032
}
1033+
#endif
10321034

10331035
static void qede_gro_receive(struct qede_dev *edev,
10341036
struct qede_fastpath *fp,
10351037
struct sk_buff *skb,
10361038
u16 vlan_tag)
10371039
{
1040+
#ifdef CONFIG_INET
10381041
if (skb_shinfo(skb)->gso_size) {
10391042
switch (skb->protocol) {
10401043
case htons(ETH_P_IP):
@@ -1049,7 +1052,7 @@ static void qede_gro_receive(struct qede_dev *edev,
10491052
ntohs(skb->protocol));
10501053
}
10511054
}
1052-
1055+
#endif
10531056
skb_record_rx_queue(skb, fp->rss_id);
10541057
qede_skb_receive(edev, fp, skb, vlan_tag);
10551058
}

0 commit comments

Comments
 (0)