Re: [PATCH] 2.4.4 breaks VMware

2001-05-02 Thread Gregory T. Norris

On Wed, May 02, 2001 at 06:53:49AM +0200, Bjoern A. Zeeb wrote:
> An even better solution would be getting vmware 2.0.4 which seems to
> be a bit more 2.4-kernel compliant.
> It is not yet announced on their web from what I can see but you may
> already fetch it from p.ex. ftp://download1.vmware.com/pub/software/

It seems to fix the problem with vmware recognizing older SCSI CDROMs as
well.

 PGP signature


Re: [PATCH] 2.4.4 breaks VMware

2001-05-01 Thread Bjoern A. Zeeb

On Tue, 1 May 2001, Mohammad A. Haque wrote:

> [EMAIL PROTECTED] 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

An even better solution would be getting vmware 2.0.4 which seems to
be a bit more 2.4-kernel compliant.
It is not yet announced on their web from what I can see but you may
already fetch it from p.ex. ftp://download1.vmware.com/pub/software/

-- 
Bjoern A. Zeeb  bzeeb at Zabbadoz dot NeT
56 69 73 69 74  http://www.zabbadoz.net/


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



Re: [PATCH] 2.4.4 breaks VMware

2001-05-01 Thread Mohammad A. Haque

[EMAIL PROTECTED] 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/ 
   [EMAIL PROTECTED]

  "Alcohol and calculus don't mix. Project Lead
   Don't drink and derive." --Unknown  http://wm.themes.org/
   [EMAIL PROTECTED]
=

diff -urw vmnet-only/vnetInt.h vmnet-only-patched/vnetInt.h
--- vmnet-only/vnetInt.hWed Nov  1 20:48:28 2000
+++ vmnet-only-patched/vnetInt.hTue 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), \



Re: [PATCH] 2.4.4 breaks VMware

2001-05-01 Thread David S. Miller


[EMAIL PROTECTED] writes:
 > --- skbuff.h.orig   Tue May  1 18:41:50 2001
 > +++ skbuff.hTue May  1 18:41:55 2001
 > @@ -244,6 +244,11 @@
 >  
 >  /* Internal */
 >  #define skb_shinfo(SKB)((struct skb_shared_info *)((SKB)->end))
 > +/* for vmware */
 > +static inline atomic_t *skb_datarefp(struct sk_buff *skb)
 > +{
 > +return (atomic_t *)(skb->end);
 > +}

No, the equivalent is &skb_shinfo(skb)->dataref

Later,
David S. Miller
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/