Re: igbvf: add new driver to support 82576 virtual functions

Previous thread: Re: [PATCH] conntrack: Reduce conntrack count in nf_conntrack_free() by Eric Dumazet on Tuesday, March 24, 2009 - 8:53 pm. (3 messages)

Next thread: [patch 2/6] [PATCH] qeth: add statistics for tx csum by frank.blaschka on Tuesday, March 24, 2009 - 11:57 pm. (1 message)
From: David Miller
Date: Tuesday, March 24, 2009 - 11:38 pm

This breaks the build:

drivers/net/igbvf/ethtool.c: In function 'igbvf_set_ringparam':
drivers/net/igbvf/ethtool.c:299: error: implicit declaration of function 'vmalloc'
drivers/net/igbvf/ethtool.c:299: warning: assignment makes pointer from integer without a cast
drivers/net/igbvf/ethtool.c:346: error: implicit declaration of function 'vfree'
--

From: Jeff Kirsher
Date: Wednesday, March 25, 2009 - 2:03 am

On Wed, Mar 25, 2009 at 1:45 AM, Jeff Kirsher

I confirmed that Jesse Barnes has these SR-IOV patches queued up for 2.6.30.
http://marc.info/?l=linux-kernel&m=123757169806111&w=2

-- 
Cheers,
Jeff
--

From: Yu Zhao
Date: Wednesday, March 25, 2009 - 2:47 am

From: Alexander Duyck
Date: Wednesday, March 25, 2009 - 9:10 am

The problem isn't the SR-IOV patches it is a difference in 
architectures.  The x86/x86_64 architecture lets you be a bit more 
sloppy when it comes to including vmalloc.  I've seen it in the past 
with igb, and I suspect that is why we didn't catch this in testing.  We 
just need to add a #include of vmalloc.h in ethtool.c and the issue 
should be fixed.

Thanks,

Alex
--

From: David Miller
Date: Wednesday, March 25, 2009 - 2:34 pm

From: Alexander Duyck <alexander.h.duyck@intel.com>

Yes, that was the problem.

I thought it was dead obvious from the build failure message.
What else could a lack of visible vmalloc() declaration mean? :-/
--

Previous thread: Re: [PATCH] conntrack: Reduce conntrack count in nf_conntrack_free() by Eric Dumazet on Tuesday, March 24, 2009 - 8:53 pm. (3 messages)

Next thread: [patch 2/6] [PATCH] qeth: add statistics for tx csum by frank.blaschka on Tuesday, March 24, 2009 - 11:57 pm. (1 message)