Re: [PATCH 2/2] ehea: NAPI multi queue TX/RX path for SMP
- From: Jan-Bernd Themann <ossthema@xxxxxxxxxx>
- Date: Wed, 28 Feb 2007 10:23:16 +0100
Hi,
+static inline int ehea_hash_skb(struct sk_buff *skb, int num_qps)
+{
+ u32 tmp;
+ if ((skb->nh.iph->protocol == IPPROTO_TCP)
+ && skb->protocol == ETH_P_IP) {
skb->protocol has network byte order. The ETH_P_IP test should also
logically come before checking the IP protocol.
fixed.
good point. I'll fix that.+ tmp = (skb->h.th->source + (skb->h.th->dest << 16)) % 31;
Only locally generated packets have a valid h.th pointer.
I'll send a new patch set later today
Thanks,
Jan-Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 2/2] ehea: NAPI multi queue TX/RX path for SMP
- From: Jan-Bernd Themann
- Re: [PATCH 2/2] ehea: NAPI multi queue TX/RX path for SMP
- From: Patrick McHardy
- [PATCH 2/2] ehea: NAPI multi queue TX/RX path for SMP
- Prev by Date: Re: [PATCH 2.6.20] kobject net ifindex + rename
- Next by Date: Re: [PATCH 2.6.20] kobject net ifindex + rename
- Previous by thread: Re: [PATCH 2/2] ehea: NAPI multi queue TX/RX path for SMP
- Next by thread: [PATCH 2/2] ehea: NAPI multi queue TX/RX path for SMP
- Index(es):
Relevant Pages
|