[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1284644209.3352.35.camel@edumazet-laptop>
Date: Thu, 16 Sep 2010 15:36:49 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Amit Kumar Salecha <amit.salecha@...gic.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
ameen.rahman@...gic.com, anirban.chakraborty@...gic.com
Subject: Re: [PATCH NEXT 1/5] qlcnic: support vlan rx accleration
Le jeudi 16 septembre 2010 à 06:14 -0700, Amit Kumar Salecha a écrit :
> - if (unlikely(adapter->pvid)) {
> - if (qlcnic_check_rx_tagging(adapter, skb)) {
> - adapter->stats.rxdropped++;
> - dev_kfree_skb_any(skb);
> - return buffer;
> - }
> + if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) {
> + adapter->stats.rxdropped++;
> + dev_kfree_skb_any(skb);
Its a bit strange you use dev_kfree_skb_any(skb) here.
We run in NAPI mode, so you can use dev_kfree_skb().
> + return buffer;
> }
>
> skb->protocol = eth_type_trans(skb, netdev);
>
> - napi_gro_receive(&sds_ring->napi, skb);
> + if ((vid != 0xffff) && adapter->vlgrp)
> + vlan_hwaccel_receive_skb(skb, adapter->vlgrp, vid);
> + else
> + napi_gro_receive(&sds_ring->napi, skb);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists