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

Hal Rosenstock halr at voltaire.com
Sun Mar 27 05:08:43 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)
@@ -209,6 +209,7 @@
 				priv->stats.rx_bytes += skb->len;
 
 				skb->dev = dev;
+				skb->mac.raw = skb->data;
 				/* XXX get correct PACKET_ type here */
 				skb->pkt_type = PACKET_HOST;
 				netif_rx_ni(skb);



More information about the general mailing list