[openib-general] [PATCH] IPoIB: Set hardware header on packet receive

Hal Rosenstock halr at voltaire.com
Mon Mar 28 09:34:08 PST 2005


IPoIB: Set hardware header on packet receive
Needed for PF_PACKET/SOCK_PACKET

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: ipoib_ib.c
===================================================================
--- ipoib_ib.c	(revision 2032)
+++ ipoib_ib.c	(working copy)
@@ -202,6 +202,7 @@
 			    wc->src_qp != priv->qp->qp_num) {
 				skb->protocol = ((struct ipoib_header *) skb->data)->proto;
 
+				skb->mac.raw = skb->data;
 				skb_pull(skb, IPOIB_ENCAP_LEN);
 
 				dev->last_rx = jiffies;






More information about the general mailing list