Waskiewicz Jr, Peter P <[EMAIL PROTECTED]> wrote:
>
> True, but the assignment for "dev" above also casts this void * to
> struct net_device *:
>
>dev = (struct net_device *)
>(((long)p + NETDEV_ALIGN_CONST) & ~NETDEV_ALIGN_CONST);
>dev->padded = (char *)dev - (cha
On Tue, Apr 10, 2007 at 08:41:49AM -0700, Waskiewicz Jr, Peter P ([EMAIL
PROTECTED]) wrote:
> > On Mon, Apr 09, 2007 at 02:28:41PM -0700, Peter P Waskiewicz
> > Jr ([EMAIL PROTECTED]) wrote:
> > > + alloc_size = (sizeof(struct net_device_subqueue) * queue_count);
> > > +
> > > +
> On Mon, Apr 09, 2007 at 02:28:41PM -0700, Peter P Waskiewicz
> Jr ([EMAIL PROTECTED]) wrote:
> > + alloc_size = (sizeof(struct net_device_subqueue) * queue_count);
> > +
> > + p = kzalloc(alloc_size, GFP_KERNEL);
> > + if (!p) {
> > + printk(KERN_ERR "alloc_netdev: Unable to
>
Waskiewicz Jr, Peter P <[EMAIL PROTECTED]> wrote:
>
>> >@@ -3356,6 +3370,7 @@ void free_netdev(struct net_device *dev)
>> > /* will free via device release */
>> > put_device(&dev->dev);
>> > #else
>> >+kfree((char *)dev->egress_subqueue);
>> > kfree((char *)dev - dev->padded);
>> >
On Mon, Apr 09, 2007 at 02:28:41PM -0700, Peter P Waskiewicz Jr ([EMAIL
PROTECTED]) wrote:
> + alloc_size = (sizeof(struct net_device_subqueue) * queue_count);
> +
> + p = kzalloc(alloc_size, GFP_KERNEL);
> + if (!p) {
> + printk(KERN_ERR "alloc_netdev: Unable to allocate
> Hi,
>
>
> On Apr 9 2007 14:28, Peter P Waskiewicz Jr wrote:
> >@@ -3345,6 +3358,7 @@ void free_netdev(struct net_device *dev) {
> >#ifdef CONFIG_SYSFS
> > /* Compatibility with error handling in drivers */
> >+kfree((char *)dev->egress_subqueue);
> > if (dev->reg_state == NETREG
Hi,
On Apr 9 2007 14:28, Peter P Waskiewicz Jr wrote:
>@@ -3345,6 +3358,7 @@ void free_netdev(struct net_device *dev)
> {
> #ifdef CONFIG_SYSFS
> /* Compatibility with error handling in drivers */
>+ kfree((char *)dev->egress_subqueue);
> if (dev->reg_state == NETREG_UNINITIALIZ
From: "Waskiewicz Jr, Peter P" <[EMAIL PROTECTED]>
Date: Mon, 9 Apr 2007 13:47:58 -0700
> Will do. On a side note, I don't see my patches landing on vger again.
> Did they get munched, or is majordomo lagging a bit?
I forwarded you one of the bounces.
-
To unsubscribe from this list: send the li
bject: Re: [PATCH 2/2] NET: Multiqueue network device support.
>
> From: "Waskiewicz Jr, Peter P" <[EMAIL PROTECTED]>
> Date: Mon, 9 Apr 2007 13:43:11 -0700
>
> > True, but the assignment for "dev" above also casts this void * to
&
From: "Waskiewicz Jr, Peter P" <[EMAIL PROTECTED]>
Date: Mon, 9 Apr 2007 13:43:11 -0700
> True, but the assignment for "dev" above also casts this void * to
> struct net_device *:
>
> dev = (struct net_device *)
> (((long)p + NETDEV_ALIGN_CONST) & ~NETDEV_ALIGN_CONST);
>
bject: Re: [PATCH 2/2] NET: Multiqueue network device support.
>
> From: Peter P.Waskiewicz Jr. <[EMAIL PROTECTED]>
> Date: Mon, 09 Apr 2007 13:50:52 -0700
>
> > From: Peter P. Waskiewicz Jr. <[EMAIL PROTECTED]>
> >
> > Added an API and associated support
From: Peter P.Waskiewicz Jr. <[EMAIL PROTECTED]>
Date: Mon, 09 Apr 2007 13:50:52 -0700
> From: Peter P. Waskiewicz Jr. <[EMAIL PROTECTED]>
>
> Added an API and associated supporting routines for multiqueue network
> devices.
> This allows network devices supporting multiple TX queues to configur
12 matches
Mail list logo