Commit 3428414f authored by Anton Blanchard's avatar Anton Blanchard Committed by David S. Miller

ehea: Add GRO support

Add GRO support to the ehea driver.

v3:
[cascardo] no need to enable GRO, since it's enabled by default
[cascardo] vgrp was removed in the vlan cleanup
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2cb1deb5
...@@ -647,15 +647,6 @@ static int ehea_treat_poll_error(struct ehea_port_res *pr, int rq, ...@@ -647,15 +647,6 @@ static int ehea_treat_poll_error(struct ehea_port_res *pr, int rq,
return 0; return 0;
} }
static void ehea_proc_skb(struct ehea_port_res *pr, struct ehea_cqe *cqe,
struct sk_buff *skb)
{
if (cqe->status & EHEA_CQE_VLAN_TAG_XTRACT)
__vlan_hwaccel_put_tag(skb, cqe->vlan_tag);
netif_receive_skb(skb);
}
static int ehea_proc_rwqes(struct net_device *dev, static int ehea_proc_rwqes(struct net_device *dev,
struct ehea_port_res *pr, struct ehea_port_res *pr,
int budget) int budget)
...@@ -732,7 +723,11 @@ static int ehea_proc_rwqes(struct net_device *dev, ...@@ -732,7 +723,11 @@ static int ehea_proc_rwqes(struct net_device *dev,
} }
processed_bytes += skb->len; processed_bytes += skb->len;
ehea_proc_skb(pr, cqe, skb);
if (cqe->status & EHEA_CQE_VLAN_TAG_XTRACT)
__vlan_hwaccel_put_tag(skb, cqe->vlan_tag);
napi_gro_receive(&pr->napi, skb);
} else { } else {
pr->p_stats.poll_receive_errors++; pr->p_stats.poll_receive_errors++;
port_reset = ehea_treat_poll_error(pr, rq, cqe, port_reset = ehea_treat_poll_error(pr, rq, cqe,
......
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