All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ehea: Fix skb header access
@ 2007-05-02 14:07 ` Thomas Klein
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Klein @ 2007-05-02 14:07 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Thomas Klein, Jan-Bernd Themann, netdev, linux-kernel,
	Christoph Raisch, Stefan Roscher, linux-ppc, Marcus Eder

Adapt to new skb header access functions.

Signed-off-by: Thomas Klein <tklein@de.ibm.com>
---


diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index c7a5614..7211648 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -1803,10 +1803,10 @@ static inline int ehea_hash_skb(struct s
 	u32 tmp;
 
 	if ((skb->protocol == htons(ETH_P_IP)) &&
-	    (skb->nh.iph->protocol == IPPROTO_TCP)) {
-		tcp = (struct tcphdr*)(skb->nh.raw + (skb->nh.iph->ihl * 4));
+	    (ip_hdr(skb)->protocol == IPPROTO_TCP)) {
+		tcp = (struct tcphdr*)(skb_network_header(skb) + (ip_hdr(skb)->ihl * 4));
 		tmp = (tcp->source + (tcp->dest << 16)) % 31;
-		tmp += skb->nh.iph->daddr % 31;
+		tmp += ip_hdr(skb)->daddr % 31;
 		return tmp % num_qps;
 	}
 	else

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] ehea: Fix skb header access
@ 2007-05-02 14:07 ` Thomas Klein
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Klein @ 2007-05-02 14:07 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Christoph Raisch, Jan-Bernd Themann, Jan-Bernd Themann,
	linux-kernel, linux-ppc, Marcus Eder, netdev, Thomas Klein,
	Stefan Roscher

Adapt to new skb header access functions.

Signed-off-by: Thomas Klein <tklein@de.ibm.com>
---


diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index c7a5614..7211648 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -1803,10 +1803,10 @@ static inline int ehea_hash_skb(struct s
 	u32 tmp;
 
 	if ((skb->protocol == htons(ETH_P_IP)) &&
-	    (skb->nh.iph->protocol == IPPROTO_TCP)) {
-		tcp = (struct tcphdr*)(skb->nh.raw + (skb->nh.iph->ihl * 4));
+	    (ip_hdr(skb)->protocol == IPPROTO_TCP)) {
+		tcp = (struct tcphdr*)(skb_network_header(skb) + (ip_hdr(skb)->ihl * 4));
 		tmp = (tcp->source + (tcp->dest << 16)) % 31;
-		tmp += skb->nh.iph->daddr % 31;
+		tmp += ip_hdr(skb)->daddr % 31;
 		return tmp % num_qps;
 	}
 	else



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ehea: Fix skb header access
  2007-05-02 14:07 ` Thomas Klein
@ 2007-05-08  5:17   ` Jeff Garzik
  -1 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2007-05-08  5:17 UTC (permalink / raw)
  To: Thomas Klein
  Cc: Thomas Klein, Jan-Bernd Themann, netdev, linux-kernel,
	Christoph Raisch, Stefan Roscher, linux-ppc, Marcus Eder

Thomas Klein wrote:
> Adapt to new skb header access functions.
> 
> Signed-off-by: Thomas Klein <tklein@de.ibm.com>

applied

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ehea: Fix skb header access
@ 2007-05-08  5:17   ` Jeff Garzik
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2007-05-08  5:17 UTC (permalink / raw)
  To: Thomas Klein
  Cc: Christoph Raisch, Jan-Bernd Themann, Jan-Bernd Themann,
	linux-kernel, linux-ppc, Marcus Eder, netdev, Thomas Klein,
	Stefan Roscher

Thomas Klein wrote:
> Adapt to new skb header access functions.
> 
> Signed-off-by: Thomas Klein <tklein@de.ibm.com>

applied



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-08  5:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-02 14:07 [PATCH] ehea: Fix skb header access Thomas Klein
2007-05-02 14:07 ` Thomas Klein
2007-05-08  5:17 ` Jeff Garzik
2007-05-08  5:17   ` Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.