Re: [PATCH] 2.4.4 breaks VMware

Mohammad A. Haque (mhaque@haque.net)
Tue, 01 May 2001 21:56:26 -0400


This is a multi-part message in MIME format.
--------------5F879115CBA770D6E4A81515
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

tpepper@vato.org wrote:
> This patch replaces a wee bit of code vmware wanted in include/linux/skbuff.h
> although I'm guessing it was removed for a reason and vmware should be patched
> to use the new method.
>

Better to patch vmware rather than the kernel. Here's a patch thet
should be applied to source files in
/usr/lib/vmware/modules/source/vmnet.tar

-- 

===================================================================== Mohammad A. Haque http://www.haque.net/ mhaque@haque.net

"Alcohol and calculus don't mix. Project Lead Don't drink and derive." --Unknown http://wm.themes.org/ batmanppc@themes.org ===================================================================== --------------5F879115CBA770D6E4A81515 Content-Type: text/plain; charset=us-ascii; name="vmnet-skbuff.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vmnet-skbuff.diff"

diff -urw vmnet-only/vnetInt.h vmnet-only-patched/vnetInt.h --- vmnet-only/vnetInt.h Wed Nov 1 20:48:28 2000 +++ vmnet-only-patched/vnetInt.h Tue Apr 17 23:29:47 2001 @@ -16,9 +16,15 @@ # define KFREE_SKB(skb, type) kfree_skb(skb) # define DEV_KFREE_SKB(skb, type) dev_kfree_skb(skb) # define SKB_INCREF(skb) atomic_inc(&(skb)->users) +# ifdef KERNEL_2_4_0 +# define SKB_IS_CLONE_OF(clone, skb) ( \ + skb_cloned(clone) \ + ) +# else # define SKB_IS_CLONE_OF(clone, skb) ( \ skb_datarefp(clone) == skb_datarefp(skb) \ ) +# endif # define SK_ALLOC(pri) sk_alloc(0, pri, 1) # define DEV_QUEUE_XMIT(skb, dev, pri) ( \ (skb)->dev = (dev), \

--------------5F879115CBA770D6E4A81515--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/