Skip to content

Commit

Permalink
enic: Don't indicate IPv6 pkts using soft-LRO
Browse files Browse the repository at this point in the history
LRO is only applied to IPv4 pkts, so don't use the LRO indication functions
for anything other IPv4 pkts.  Every non-IPv4 pkt is indicated using non-
LRO functions.

Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Scott Feldman authored and Jeff Garzik committed Sep 25, 2008
1 parent 3b060be commit d9c3c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ static void enic_rq_indicate_buf(struct vnic_rq *rq,

if (enic->vlan_group && vlan_stripped) {

if (ENIC_SETTING(enic, LRO))
if (ENIC_SETTING(enic, LRO) && ipv4)
lro_vlan_hwaccel_receive_skb(&enic->lro_mgr,
skb, enic->vlan_group,
vlan, cq_desc);
Expand All @@ -951,7 +951,7 @@ static void enic_rq_indicate_buf(struct vnic_rq *rq,

} else {

if (ENIC_SETTING(enic, LRO))
if (ENIC_SETTING(enic, LRO) && ipv4)
lro_receive_skb(&enic->lro_mgr, skb, cq_desc);
else
netif_receive_skb(skb);
Expand Down

0 comments on commit d9c3c57

Please sign in to comment.